Fixed bug #10791: Performance improvement: Skip cHash check if page is already non...
authorMichael Stucki <michael.stucki@typo3.org>
Tue, 23 Jun 2009 12:13:21 +0000 (12:13 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Tue, 23 Jun 2009 12:13:21 +0000 (12:13 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5619 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_fe.php

index 5a4aaa9..9ac91bb 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2009-06-23  Michael Stucki  <michael@typo3.org>
 
+       * Fixed bug #10791: Performance improvement: Skip cHash check if page is already non-cached
        * Fixed bug #11368: Ignore ENABLE_INSTALL_TOOL file if it is older than one hour
 
 2009-06-23  Steffen Kamper  <info@sk-typo3.de>
index 706882f..34da3fb 100644 (file)
         * @see reqCHash()
         */
        function makeCacheHash()        {
+               // No need to test anything if caching was already disabled.
+               if ($this->no_cache && !$this->TYPO3_CONF_VARS['FE']['pageNotFoundOnCHashError']) {
+                       return;
+               }
+
                $GET = t3lib_div::_GET();
                if ($this->cHash && is_array($GET))     {
                        $this->cHash_array = t3lib_div::cHashParams(t3lib_div::implodeArrayForUrl('',$GET));