Sfoglia il codice sorgente

ZF-7600: small speed up: use $prefix instead of $this->_options['cache_id_prefix']

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21280 44c647ce-9c0f-0410-b52a-842ac1e357ba
mabe 16 anni fa
parent
commit
cf4c02b558
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      library/Zend/Cache/Core.php

+ 4 - 4
library/Zend/Cache/Core.php

@@ -485,7 +485,7 @@ class Zend_Cache_Core
             $prefix    = & $this->_options['cache_id_prefix'];
             $prefixLen = strlen($prefix);
             foreach ($ids as &$id) {
-                if (strpos($id, $this->_options['cache_id_prefix']) === 0) {
+                if (strpos($id, $prefix) === 0) {
                     $id = substr($id, $prefixLen);
                 }
             }
@@ -518,7 +518,7 @@ class Zend_Cache_Core
             $prefix    = & $this->_options['cache_id_prefix'];
             $prefixLen = strlen($prefix);
             foreach ($ids as &$id) {
-                if (strpos($id, $this->_options['cache_id_prefix']) === 0) {
+                if (strpos($id, $prefix) === 0) {
                     $id = substr($id, $prefixLen);
                 }
             }
@@ -551,7 +551,7 @@ class Zend_Cache_Core
             $prefix    = & $this->_options['cache_id_prefix'];
             $prefixLen = strlen($prefix);
             foreach ($ids as &$id) {
-                if (strpos($id, $this->_options['cache_id_prefix']) === 0) {
+                if (strpos($id, $prefix) === 0) {
                     $id = substr($id, $prefixLen);
                 }
             }
@@ -578,7 +578,7 @@ class Zend_Cache_Core
             $prefix    = & $this->_options['cache_id_prefix'];
             $prefixLen = strlen($prefix);
             foreach ($ids as &$id) {
-                if (strpos($id, $this->_options['cache_id_prefix']) === 0) {
+                if (strpos($id, $prefix) === 0) {
                     $id = substr($id, $prefixLen);
                 }
             }