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

This commit is contained in:
slawkens
2025-07-31 13:02:55 +02:00
parent 43415cf35d
commit 3b47e9df2f

View File

@@ -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();
}