Stops the page from cache (relates to #36)

This commit is contained in:
Andrew Collington 2019-07-12 01:41:26 +01:00
parent 17b84df9a2
commit 0681b84dfa

View file

@ -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;