mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Make sure that CMS requests disable caching
This commit is contained in:
parent
fac6e6a929
commit
362c2f3b64
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user