2009-06-07 Rupert Germann <rupi@gmx.li>
authorRupert Germann <rupi@gmx.li>
Sun, 7 Jun 2009 20:19:37 +0000 (20:19 +0000)
committerRupert Germann <rupi@gmx.li>
Sun, 7 Jun 2009 20:19:37 +0000 (20:19 +0000)
* Fixed bug #0011288: function tslib_fe->setPageCacheContent() removes page_cache entry twice
* Fixed bug #0011289: t3lib_cache_backend_FileBackend doesn't work properly with TYPO3 running in a subdirectory to the document root (thanks to Niels Pardon )

git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5565 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/cache/backend/class.t3lib_cache_backend_filebackend.php
typo3/sysext/cms/tslib/class.tslib_fe.php

index 7ae32d6..8174233 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-06-07  Rupert Germann  <rupi@gmx.li>
+       * Fixed bug #0011288: function tslib_fe->setPageCacheContent() removes page_cache entry twice
+       * Fixed bug #0011289: t3lib_cache_backend_FileBackend doesn't work properly with TYPO3 running in a subdirectory to the document root (thanks to Niels Pardon )
+
 2009-06-06  Benjamin Mack  <benni@typo3.org>
 
        * Followup to #11016: Implement RSA authentication for BE and FE (Added deprecation warnings to unused functions in the login screen)
index e413f93..704be5d 100644 (file)
@@ -75,7 +75,7 @@ class t3lib_cache_backend_FileBackend extends t3lib_cache_backend_AbstractBacken
         * @author Ingo Renner <ingo@typo3.org>
         */
        public function setCacheDirectory($cacheDirectory) {
-               $documentRoot = t3lib_div::getIndpEnv('TYPO3_DOCUMENT_ROOT') . '/';
+               $documentRoot = PATH_site;
 
                        // resetting if an absolute path is given
                if ($cacheDirectory{0} == '/') {
index 2e3283b..fa560ad 100644 (file)
         * @see realPageCacheContent(), tempPageCacheContent()
         */
        function setPageCacheContent($content, $data, $expirationTstamp) {
-               $this->clearPageCacheContent();
-
                $cacheData = array(
                        'hash'         => $this->newHash,
                        'page_id'      => $this->id,