diff options
Diffstat (limited to 'phpBB/includes/cache/service.php')
| -rw-r--r-- | phpBB/includes/cache/service.php | 51 |
1 files changed, 43 insertions, 8 deletions
diff --git a/phpBB/includes/cache/service.php b/phpBB/includes/cache/service.php index 37f32aa753..7858e27a5c 100644 --- a/phpBB/includes/cache/service.php +++ b/phpBB/includes/cache/service.php @@ -58,6 +58,11 @@ class phpbb_cache_service return call_user_func_array(array($this->driver, $method), $arguments); } + public function __get($var) + { + return $this->driver->$var; + } + /** * Obtain list of naughty words and build preg style replacement arrays for use by the * calling script @@ -332,27 +337,22 @@ class phpbb_cache_service $parsed_array = array(); } - $reparse = false; $filename = $phpbb_root_path . 'styles/' . $style['style_path'] . '/style.cfg'; if (!file_exists($filename)) { - continue; + return $parsed_array; } if (!isset($parsed_array['filetime']) || (($config['load_tplcompile'] && @filemtime($filename) > $parsed_array['filetime']))) { - $reparse = true; - } - - // Re-parse cfg file - if ($reparse) - { + // Re-parse cfg file $parsed_array = parse_cfg_file($filename); $parsed_array['filetime'] = @filemtime($filename); $this->driver->put('_cfg_' . $style['style_path'], $parsed_array); } + return $parsed_array; } @@ -413,4 +413,39 @@ class phpbb_cache_service return $hook_files; } + + public function sql_load() + { + return call_user_func_array(array($this->driver, __FUNCTION__), func_get_args()); + } + + public function sql_save($query, &$query_result, $ttl) + { + return call_user_func_array(array($this->driver, __FUNCTION__), array($query, &$query_result, $ttl)); + } + + public function sql_exists() + { + return call_user_func_array(array($this->driver, __FUNCTION__), func_get_args()); + } + + public function sql_fetchrow() + { + return call_user_func_array(array($this->driver, __FUNCTION__), func_get_args()); + } + + public function sql_fetchfield() + { + return call_user_func_array(array($this->driver, __FUNCTION__), func_get_args()); + } + + public function sql_rowseek() + { + return call_user_func_array(array($this->driver, __FUNCTION__), func_get_args()); + } + + public function sql_freeresult() + { + return call_user_func_array(array($this->driver, __FUNCTION__), func_get_args()); + } } |
