]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Cache/DatabaseCacheDriver.php
Adding multihost - locking
[friendica.git] / src / Core / Cache / DatabaseCacheDriver.php
index 7248e0b349c2eaf1aecc76767cda0ca9e59113d4..0838a66c7a206ac7d81dab94c6da5fddf417ffa9 100644 (file)
@@ -33,11 +33,11 @@ class DatabaseCacheDriver implements ICacheDriver
                return null;
        }
 
-       public function set($key, $value, $duration = Cache::MONTH)
+       public function set($key, $value, $ttl = Cache::FIVE_MINUTES)
        {
                $fields = [
                        'v'       => serialize($value),
-                       'expires' => DateTimeFormat::utc('now + ' . $duration . ' seconds'),
+                       'expires' => DateTimeFormat::utc('now + ' . $ttl . ' seconds'),
                        'updated' => DateTimeFormat::utcNow()
                ];