Stops the page from cache (relates to #36)
This commit is contained in:
parent
17b84df9a2
commit
0681b84dfa
1 changed files with 4 additions and 2 deletions
|
@ -13,7 +13,6 @@ namespace OpcacheGui;
|
|||
* @license MIT, http://acollington.mit-license.org/
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
* User configuration
|
||||
*/
|
||||
|
@ -42,9 +41,12 @@ if (!extension_loaded('Zend OPcache')) {
|
|||
|
||||
$ocEnabled = ini_get('opcache.enable');
|
||||
if (empty($ocEnabled)) {
|
||||
die('The Zend OPcache extension is installed but not turned on');
|
||||
die('The Zend OPcache extension is installed but not active');
|
||||
}
|
||||
|
||||
header('Cache-Control: no-cache, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
|
||||
class OpCacheService
|
||||
{
|
||||
protected $data;
|
||||
|
|
Loading…
Reference in a new issue