diff --git a/lib/view/sfViewCacheManager.class.php b/lib/view/sfViewCacheManager.class.php index 07eb7bb99..2ccaa0139 100644 --- a/lib/view/sfViewCacheManager.class.php +++ b/lib/view/sfViewCacheManager.class.php @@ -439,11 +439,11 @@ public function remove($internalUri, $hostName = '', $vary = '', $contextualPref if (strpos($cacheKey, '*')) { return $this->cache->removePattern($cacheKey); } - if ($this->cache->has($cacheKey)) { - return $this->cache->remove($cacheKey); + if (!$this->cache->has($cacheKey)) { + return true; } - return true; + return $this->cache->remove($cacheKey); } /**