From 4533fba0fc13c5e5dd68e4cd5099bf37fa07fb22 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Sat, 11 Jan 2003 23:07:30 +0000 Subject: [PATCH] Implementation of an experimental cache manager. git-svn-id: file:///svn/phpbb/trunk@3313 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/acm/cache_file.php | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/phpBB/includes/acm/cache_file.php b/phpBB/includes/acm/cache_file.php index a840274e01..c629bc4aac 100644 --- a/phpBB/includes/acm/cache_file.php +++ b/phpBB/includes/acm/cache_file.php @@ -19,10 +19,6 @@ * ***************************************************************************/ -// -// This class is part of the Advanced Cache Manager -// - class acm { var $vars = ''; @@ -90,21 +86,7 @@ class acm function load($varname, $expire_time = 0) { - if (!is_array($this->vars)) - { - $this->load_cache(); - } - if (isset($this->vars[$varname])) - { - if ($expire_time && time() - $this->vars_ts[$varname] > $expire_time) - { - $this->destroy($varname); - return null; - } - return $this->vars[$varname]; - } - - return null; + return (exists($varname, $expire_time)) ? $this->vars[$varname] : null; } function exists($varname, $expire_time = 0)