X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fcache.php;h=b56906c54492d95033e073df544ab61505b6029a;hb=c9ea18ce7499cc70b16e27050c118e1f5e03831c;hp=e8af8f9de119ef543415f2b93523790ca9e6aa87;hpb=46ba1a46f5b7b84f6e94fdbdbe87c4f1f320c90f;p=friendica.git diff --git a/include/cache.php b/include/cache.php index e8af8f9de1..b56906c544 100644 --- a/include/cache.php +++ b/include/cache.php @@ -5,8 +5,8 @@ * @brief Class for storing data for a short time */ -use \Friendica\Core\Config; -use \Friendica\Core\PConfig; +use Friendica\Core\Config; +use Friendica\Core\PConfig; class Cache { /** @@ -121,9 +121,9 @@ class Cache { /** * @brief Put data in the cache according to the key - * + * * The input $value can have multiple formats. - * + * * @param string $key The key to the cached data * @param mixed $valie The value that is about to be stored * @param integer $duration The cache lifespan @@ -186,7 +186,7 @@ class Cache { set_config("system", "cache_cleared_half_hour", time()); } - if (($max_level <= CACHE_QUARTER_HOUR) AND (get_config("system", "cache_cleared_hour")) < time() - self::duration(CACHE_QUARTER_HOUR)) { + if (($max_level <= CACHE_QUARTER_HOUR) AND (get_config("system", "cache_cleared_quarter_hour")) < time() - self::duration(CACHE_QUARTER_HOUR)) { q("DELETE FROM `cache` WHERE `updated` < '%s' AND `expire_mode` = %d", dbesc(datetime_convert('UTC','UTC',"now - 15 minutes")), intval(CACHE_QUARTER_HOUR));