Cache::remember: $ttl = 0 means no cache

This commit is contained in:
slawkens
2026-01-30 23:04:32 +01:00
parent f7cf2425d0
commit 364b140316

View File

@@ -114,7 +114,7 @@ class Cache
public static function remember($key, $ttl, $callback)
{
$cache = self::getInstance();
if(!$cache->enabled()) {
if(!$cache->enabled() || $ttl == 0) {
return $callback();
}