diff --git a/common/framework/cache.php b/common/framework/cache.php index 805f1a1ac..d30f31438 100644 --- a/common/framework/cache.php +++ b/common/framework/cache.php @@ -152,6 +152,10 @@ class Cache { if (self::$_driver !== null) { + if ($ttl >= (3600 * 24 * 30)) + { + $ttl = min(3600 * 24 * 30, max(0, $ttl - time())); + } return self::$_driver->set(self::getRealKey($key, $group_name), $value, intval($ttl)) ? true : false; } else