Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-11-17 22:26:43

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Admin interface caching

Does anyone know a way of an admin plugin forcing a refresh of its tab?

The problem I’ve got is when a site is Production Status Live some plugins present cached (& hence misleading) pages in the Admin interface.

If the site’s status is other than Live, then there’s no problem. If the plugin page refresh is occurring after a preference change, then again the page is updated.

However if there’s been no change to the database, I’m seeing out-of-date information on the plugin’s tab … which is painful.

Thanks.

Offline

#2 2020-11-17 22:44:17

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Admin interface caching

Might’ve found a solution. This looks promising:

header('Cache-Control: no-cache, no-store, max-age=0');

before the pagetop().

Offline

Board footer

Powered by FluxBB