diff options
Diffstat (limited to 'phpBB/includes/acm/acm_eaccelerator.php')
-rw-r--r-- | phpBB/includes/acm/acm_eaccelerator.php | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/phpBB/includes/acm/acm_eaccelerator.php b/phpBB/includes/acm/acm_eaccelerator.php index 8592658e51..00d08f70d3 100644 --- a/phpBB/includes/acm/acm_eaccelerator.php +++ b/phpBB/includes/acm/acm_eaccelerator.php @@ -33,8 +33,7 @@ class acm */ function __construct() { - global $phpbb_root_path; - $this->cache_dir = $phpbb_root_path . 'cache/'; + $this->cache_dir = PHPBB_ROOT_PATH . 'cache/'; } /** @@ -42,8 +41,6 @@ class acm */ private function load() { - global $phpEx; - // grab the global cache if ($this->vars = eaccelerator_get('global')) { @@ -86,8 +83,6 @@ class acm */ public function tidy() { - global $phpEx; - eaccelerator_gc(); set_config('cache_last_gc', time(), true); @@ -100,8 +95,6 @@ class acm { if ($var_name[0] === '_') { - global $phpEx; - $temp = eaccelerator_get($var_name); if ($temp !== null) @@ -183,8 +176,6 @@ class acm */ public function destroy($var_name, $table = '') { - global $phpEx; - if ($var_name === 'sql' && !empty($table)) { if (!is_array($table)) @@ -237,8 +228,6 @@ class acm */ public function sql_load($query) { - global $phpEx; - // Remove extra spaces and tabs $query = preg_replace('/[\n\r\s\t]+/', ' ', $query); $query_id = sizeof($this->sql_rowset); @@ -260,7 +249,7 @@ class acm */ public function sql_save($query, &$query_result, $ttl) { - global $db, $phpEx; + global $db; // Remove extra spaces and tabs $query = preg_replace('/[\n\r\s\t]+/', ' ', $query); |