[TASK] Improve wincache has() function
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 5 Nov 2012 23:29:42 +0000 (00:29 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 13 Nov 2012 13:33:02 +0000 (14:33 +0100)
Change-Id: Ia90500734c71095c82f774ac6c0acd16ce28f096
Resolves: #42253
Releases: 6.0
Reviewed-on: http://review.typo3.org/16224
Reviewed-by: Philipp Gampe
Reviewed-by: Tomasz Krawczyk
Tested-by: Tomasz Krawczyk
Reviewed-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Classes/Cache/Backend/WincacheBackend.php

index 263584b..e4eddb6 100644 (file)
@@ -118,9 +118,7 @@ class WincacheBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend impl
         * @return boolean TRUE if such an entry exists, FALSE if not
         */
        public function has($entryIdentifier) {
-               $success = FALSE;
-               wincache_ucache_get($this->identifierPrefix . $entryIdentifier, $success);
-               return $success;
+               return wincache_ucache_exists($this->identifierPrefix . $entryIdentifier);
        }
 
        /**