]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't try to set an expiry for XCache
authorEvan Prodromou <evan@status.net>
Sun, 3 Jan 2010 21:27:36 +0000 (11:27 -1000)
committerEvan Prodromou <evan@status.net>
Sun, 3 Jan 2010 21:27:36 +0000 (11:27 -1000)
plugins/XCachePlugin.php

index 8011e659ae9035059e340f56fbb7974eac5a74d3..8eed12cbc9f28ae6f388a2a6fdb042b37906d539 100644 (file)
@@ -85,8 +85,7 @@ class XCachePlugin extends Plugin
 
     function onStartCacheSet(&$key, &$value, &$flag, &$expiry, &$success)
     {
-        $success = xcache_set($key, serialize($value),
-                              (is_null($expiry) ? 0 : $expiry));
+        $success = xcache_set($key, serialize($value));
 
         Event::handle('EndCacheSet', array($key, $value, $flag,
                                            $expiry));