diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index d91862208..86255622c 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -143,7 +143,7 @@ class Context * SSL action cache file * @var array */ - private static $_ssl_actions_cache_file = './files/cache/sslCacheFile.php'; + private static $_ssl_actions_cache_file = './files/cache/common/ssl_actions.php'; /** * SSL action cache @@ -219,11 +219,7 @@ class Context self::$_ssl_actions_cache_file = FileHandler::getRealPath(self::$_ssl_actions_cache_file); if(is_readable(self::$_ssl_actions_cache_file)) { - include self::$_ssl_actions_cache_file; - if(isset($sslActions)) - { - self::$_ssl_actions = $sslActions; - } + self::$_ssl_actions = (include self::$_ssl_actions_cache_file) ?: array(); } } @@ -1927,18 +1923,14 @@ class Context */ public static function addSSLAction($action) { - if(!is_readable(self::$_ssl_actions_cache_file)) + if(isset(self::$_ssl_actions[$action])) { - $buff = '