mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02: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)
|
||||
{
|
||||
$cache = self::getInstance();
|
||||
if (!$cache->enabled()) {
|
||||
if (!$cache->enabled() || $ttl == 0) {
|
||||
return $callback();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user