Ver Fonte

Stops the page from cache (relates to #36)

Andrew Collington há 6 anos atrás
pai
commit
0681b84dfa
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      index.php

+ 4 - 2
index.php

@@ -13,7 +13,6 @@ namespace OpcacheGui;
  * @license MIT, http://acollington.mit-license.org/
  * @license MIT, http://acollington.mit-license.org/
  */
  */
 
 
-
 /*
 /*
  * User configuration
  * User configuration
  */
  */
@@ -42,9 +41,12 @@ if (!extension_loaded('Zend OPcache')) {
 
 
 $ocEnabled = ini_get('opcache.enable');
 $ocEnabled = ini_get('opcache.enable');
 if (empty($ocEnabled)) {
 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
 class OpCacheService
 {
 {
     protected $data;
     protected $data;