Lines Matching refs:cache_dir
4 protected static $cache_dir, $ttl_dir;
23 @unlink(static::$cache_dir.$file);
31 static::$cache_dir = $conf['tmpdir'].'/cachewrapper/';
33 if (!file_exists(static::$cache_dir)) mkdir(static::$cache_dir);
34 …elseif (!is_dir(static::$cache_dir)) trigger_error("The cache directory '".static::$cache_dir."' i…
36 …elseif (!is_dir(static::$ttl_dir)) trigger_error("The cache directory '".static::$cache_dir."' is …
47 …if ($result = (!file_exists(static::$cache_dir.static::normalize_key($key)) && @file_put_contents(…
56 …if ($result = (@file_put_contents(static::$cache_dir.static::normalize_key($key),gzcompress(serial…
65 return file_exists(static::$cache_dir.static::normalize_key($key));
71 return @unlink(static::$cache_dir.static::normalize_key($key));
78 …file_exists(static::$cache_dir.static::normalize_key($key)) // file exists? (if not, abort…
79 …&& ($cnt = file_get_contents(static::$cache_dir.static::normalize_key($key))) !== false // file c…
90 $dh = opendir(static::$cache_dir);
93 @unlink(static::$cache_dir.$file);