mirror of
https://github.com/slawkens/myaac.git
synced 2025-11-27 21:56:50 +01:00
Cache::remember: $ttl = 0 means no cache
This commit is contained in:
@@ -106,7 +106,7 @@ class Cache
|
|||||||
public static function remember($key, $ttl, $callback)
|
public static function remember($key, $ttl, $callback)
|
||||||
{
|
{
|
||||||
$cache = self::getInstance();
|
$cache = self::getInstance();
|
||||||
if (!$cache->enabled()) {
|
if (!$cache->enabled() || $ttl == 0) {
|
||||||
return $callback();
|
return $callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user