Lines Matching refs:ttl_dir
4 protected static $cache_dir, $ttl_dir; variable in memcache_fakecache
18 $dh = opendir(static::$ttl_dir);
21 if (file_get_contents(static::$ttl_dir.$file) < time()){
22 @unlink(static::$ttl_dir.$file);
32 static::$ttl_dir = $conf['tmpdir'].'/cachewrapper_ttl/';
35 if (!file_exists(static::$ttl_dir)) mkdir(static::$ttl_dir);
36 …elseif (!is_dir(static::$ttl_dir)) trigger_error("The cache directory '".static::$cache_dir."' is …
48 if ($ttl > 0) file_put_contents(static::$ttl_dir.static::normalize_key($key),time()+$ttl);
49 else @unlink(static::$ttl_dir.static::normalize_key($key));
57 if ($ttl > 0) file_put_contents(static::$ttl_dir.static::normalize_key($key),time()+$ttl);
58 else @unlink(static::$ttl_dir.static::normalize_key($key));
70 @unlink(static::$ttl_dir.static::normalize_key($key));
96 $dh = opendir(static::$ttl_dir);
99 @unlink(static::$ttl_dir.$file);