Caching on admin section Caching on admin section
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Caching on admin section

Started by joshmarshall, August 21, 2009, 05:47:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

joshmarshall

Hi,

The web host I use has standard expires headers for requests, but this isn't overridden by the admin.php file. So at home where I use the squid caching proxy I log into the admin panel on one computer, then browse to it from another machine connected to the proxy and I can get to the admin panel. Also any changes I make within the admin settings go back to what they were unless I do a hard refresh.

My solution was to edit the admin.php file to add:

header('Cache-Control: no-cache');

to the top.