I've recently implemented Naglite3 (https://saz.sh/tags/naglite3/) for eventual display on a large screen in the office. However, something seems a little strange and I'm hoping someone has some input. I'm *guessing* it has something to do with the way PHP is handled in the Apache implementation for Groundwork. Specifically, caching seems to be handled incorrectly (using Firefox or Chrome). I really wish Groundwork had a nice, simple, and very editable page so I didn't have to use this, FWIW.
Here's what I have done to implement...
I copied the files to /usr/local/groundwork/naglite3 and added the following to httpd.conf:
Alias /naglite3 "/usr/local/groundwork/naglite3"
<Directory "/usr/local/groundwork/naglite3">
Options None
AllowOverride All
Order allow,deny
Allow from all
</Directory>
When I reload the page, the servers and hosts totals and lists do refresh. However, any change made to the PHP of the page appears permanently cached. For instance, I could alter the titles of the sections and those will not change, even with a shift-refresh. The only way I can see them is to copy the index file to a new file (ie. fooindex.php).
I've looked through various docs on caching and I've implemented everything I can find about making sure the page is set not to cache:
# Disable caching and set refresh interval
#header("Pragma: no-cache, no-store");
if (!empty($_GET["refresh"]) && is_numeric($_GET["refresh"])) {
$refresh = $_GET["refresh"];
}
Header("Last-Modified: " . gmdate("D, j M Y H:i:s") . " GMT");
Header("Expires: " . gmdate("D, j M Y H:i:s", time()) . " GMT" );
//Header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
Header("Cache-Control: post-check=0, pre-check=0", FALSE ); Header("Pragma: no-cache"); // HTTP/1.0
...and still caching continues.
As I said, I'm guessing this is related to the Apache2 implementation in Groundwork, hence posting this here. If someone has an idea for solving this, I'd appreciate it.
Page 1 of 1
Page for the big screen
#2
Posted 15 June 2011 - 02:44 PM
Note that the currently commented Pragma and Cache-Control headers were also tested.
#3
Posted 14 July 2011 - 05:10 PM
try refreshing Apache : /usr/local/groundwork/apache2/bin/apachectl restart
Share this topic:
Page 1 of 1

Help









