mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-12 09:31:29 +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)
|
||||
{
|
||||
$cache = self::getInstance();
|
||||
if (!$cache->enabled()) {
|
||||
if (!$cache->enabled() || $ttl == 0) {
|
||||
return $callback();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user