Make sure that CMS requests disable caching

This commit is contained in:
Daniel Hensby 2018-08-13 13:50:50 +01:00
parent fac6e6a929
commit 362c2f3b64
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E
2 changed files with 3 additions and 0 deletions

View File

@ -221,6 +221,8 @@ class LeftAndMain extends Controller implements PermissionProvider {
public function init() {
parent::init();
HTTPCacheControl::singleton()->disableCache();
Config::inst()->update('SSViewer', 'rewrite_hash_links', false);
Config::inst()->update('ContentNegotiator', 'enabled', false);

View File

@ -413,6 +413,7 @@ class Security extends Controller implements TemplateGlobalProvider {
* sessions don't timeout. A common use is in the admin.
*/
public function ping() {
HTTPCacheControl::singleton()->disableCache();
Requirements::clear();
return 1;
}