Commits

Laurent Bachelier  committed f4694c7

Update cache engines with latest fixes from r29490

  • Participants
  • Parent commits 5b3b08e

Comments (0)

Files changed (2)

File lib/backport/sfFunctionCacheBackport.class.php

  * @package    symfony
  * @supackage cacheBackport
  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
- * @version    SVN: $Id: sfFunctionCacheBackport.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
+ * @version    SVN: $Id: sfFunctionCacheBackport.class.php 23939 2009-11-14 17:46:14Z fabien $
  */
 class sfFunctionCacheBackport
 {
    *
    * @param sfCacheBackport $cache An sfCache object instance
    */
-  public function __construct($cache)
+  public function __construct(sfCacheBackport $cache)
   {
-    if (!is_object($cache))
-    {
-      $this->cache = new sfFileCache($cache);
-
-      throw new sfException('DEPRECATED: You must now pass a sfCacheBackport object when initializing a sfFunctionCacheBackport object. Be warned that the call() method signature has also changed.');
-    }
-
     $this->cache = $cache;
   }
 

File lib/backport/sfMemcacheCacheBackport.class.php

  * @package    symfony
  * @supackage cacheBackport
  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
- * @version    SVN: $Id: sfMemcacheCacheBackport.class.php 24607 2009-11-30 21:39:08Z FabianLange $
+ * @version    SVN: $Id: sfMemcacheCacheBackport.class.php 29490 2010-05-17 13:09:00Z fabien $
  */
 class sfMemcacheCacheBackport extends sfStringObjectCache
 {
   public function remove($key)
   {
     // delete metadata
-    $this->memcache->delete($this->getOption('prefix').'_metadata'.self::SEPARATOR.$key);
+    $this->memcache->delete($this->getOption('prefix').'_metadata'.self::SEPARATOR.$key, 0);
     if ($this->getOption('storeCacheInfo', false))
     {
       $this->setCacheInfo($key, true);
     }
-    return $this->memcache->delete($this->getOption('prefix').$key);
+    return $this->memcache->delete($this->getOption('prefix').$key, 0);
   }
 
   /**