mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #8360 from open-sausages/pulls/4/fix-http-caching
Make sure that CMS requests disable caching
This commit is contained in:
commit
c5554ca287
@ -11,6 +11,7 @@ use SilverStripe\Control\Director;
|
||||
use SilverStripe\Control\HTTPRequest;
|
||||
use SilverStripe\Control\HTTPResponse;
|
||||
use SilverStripe\Control\HTTPResponse_Exception;
|
||||
use SilverStripe\Control\Middleware\HTTPCacheControlMiddleware;
|
||||
use SilverStripe\Control\RequestHandler;
|
||||
use SilverStripe\Core\ClassInfo;
|
||||
use SilverStripe\Core\Convert;
|
||||
@ -494,6 +495,7 @@ class Security extends Controller implements TemplateGlobalProvider
|
||||
*/
|
||||
public function ping()
|
||||
{
|
||||
HTTPCacheControlMiddleware::singleton()->disableCache();
|
||||
Requirements::clear();
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user