http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692013-07-25T06:54:47ZTYPO3 ForgeTYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1748832013-07-25T06:54:47ZSven Tapperttappert@sven-t.de
<ul></ul><p>I created an extension that should fix the issue: <a class="external" href="https://typo3.org/extensions/repository/view/cf_lifetime_patch">https://typo3.org/extensions/repository/view/cf_lifetime_patch</a></p>
<p>Since the issue exists in all current branches, it includes different solutions for the 4.x and the 6.x branches of typo3.<br />Please let me know, if the patch doesn't work properly.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1748972013-07-25T11:33:54ZPhilipp Gampephilipp.gampe@typo3.org
<ul></ul><p>Would you mind to push a patch to gerrit?</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1749262013-07-25T15:13:52ZSven Tapperttappert@sven-t.de
<ul></ul><p>I will try, but I never pushed anything to gerrit. However, I would like to wait for some feedback from the cache developing team. One would probably choose a slightly different solution when directly patching the core.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1754392013-07-29T20:34:32ZPhilipp Gampephilipp.gampe@typo3.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li></ul> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1754412013-07-29T20:37:21ZPhilipp Gampephilipp.gampe@typo3.org
<ul></ul><p>You can always configure all caches in AdditionalConfiguration.php as described in: <a class="external" href="http://docs.typo3.org/typo3cms/CoreApiReference/CachingFramework/Configuration/Index.html">http://docs.typo3.org/typo3cms/CoreApiReference/CachingFramework/Configuration/Index.html</a></p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1755972013-07-30T11:51:22ZSven Tapperttappert@sven-t.de
<ul></ul><p>Thank you Philipp, that's a very good hint!</p>
<p>However, it's not clear to me how one would simply change the global default cache lifetime or - alternatively - the individual cache lifetimes of the pagesection and rootline cache. Could you please post an example (4.x & 6.x)?</p>
<p>Isn't it such an essential topic, that it should be part of the "All Configuration" section in the Typo3 installer? I read a lot of posts & articles on Typo3 caching but none even mentioned that there is more about it than the TS configuration "cache_period".</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1756082013-07-30T12:55:20ZPhilipp Gampephilipp.gampe@typo3.org
<ul></ul><pre><code class="php syntaxhl" data-language="php"><span class="s1">'SYS'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'caching'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'cache_pages'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'backend'</span> <span class="o">=></span> <span class="s1">'TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend'</span><span class="p">,</span>
<span class="s1">'options'</span> <span class="o">=></span> <span class="k">array</span><span class="p">(</span>
<span class="s1">'defaultLifetime'</span> <span class="o">=></span> <span class="mi">3600</span><span class="p">,</span> <span class="c1">// lifetime in seconds</span>
<span class="p">),</span>
<span class="p">),</span>
<span class="p">),</span>
<span class="p">),</span>
</code></pre>
<p>You can find all options in: <a class="external" href="http://docs.typo3.org/typo3cms/CoreApiReference/CachingFramework/FrontendsBackends/Index.html#caching-backend-options">http://docs.typo3.org/typo3cms/CoreApiReference/CachingFramework/FrontendsBackends/Index.html#caching-backend-options</a></p>
<p>Nevertheless, the default lifetime can be overridden by a concrete lifetime while a cache entry is set. The frontend should do this based on the TS configuration.</p>
<p>The rootline cache cannot be effected by the TS setting as it is used before the TS is know (chicken-egg problem). I am not sure about the pagesection cache. AFAIK the TS setting is only for the page cache.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1756252013-07-30T14:18:21ZSven Tapperttappert@sven-t.de
<ul></ul><p>Thank you a lot, that's the solution - but it is really quite hidden!</p>
<p>And the default behaviour is not nice, since a pagesection_cache with a short lifetime makes the config value for the page_cache almost useless, while administrators might wrongly assume to have complete control over the caching with the TS setup.</p>
<p>I will modify the "cf_lifetime_patch" extension to set the config values directly. <br />Would be great if it was at least in the installers "all configuration" or it would respect the TS setup in the future.</p>
<p>Philipp Gampe wrote:</p>
<blockquote>
<p>AFAIK the TS setting is only for the page cache.</p>
</blockquote>
<p>[...]<br />Nevertheless, the default lifetime can be overridden by a concrete lifetime while a cache entry is set. The frontend should do this based on the TS configuration.</p>
<p>Yes, that would be perfect, but the TS setup doesn't seem to be available upon cache creation. As far as I know even the final lifetime of the page cache has to be set in a second run, after the TS for the current page is rendered completely. Maybe this is a possible solution to other caches as well, to make them configurable via TS setup?</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1756282013-07-30T14:34:15ZPhilipp Gampephilipp.gampe@typo3.org
<ul></ul><p>If a page is in page cache, it is fetched from cache, even if the page_section cache already cycled out.</p>
<p>We could set the page section cache from TS, but I prefer configuring caches globally.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1756452013-07-30T14:47:22ZSven Tapperttappert@sven-t.de
<ul></ul><p>Philipp Gampe wrote:</p>
<blockquote>
<p>If a page is in page cache, it is fetched from cache, even if the page_section cache already cycled out.</p>
</blockquote>
<p>No, definitely not. That is probably what should happen, but please try it - after the pagesection cache expires (after 1 hour) the page is not fetched from cache!</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1756642013-07-30T15:52:35ZPhilipp Gampephilipp.gampe@typo3.org
<ul></ul><p>Hm, someone needs to take a look at the code.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1787582013-08-23T15:37:50ZHarald no-lastname-giveneisner.harald@online.de
<ul></ul><p>Dear Sirs!</p>
<p>I am glad I found this report here. Maybe ones mentioned my problem is related to it.</p>
<p><a class="external" href="http://forge.typo3.org/issues/51116">http://forge.typo3.org/issues/51116</a></p>
<p>I've also thought about a bug in the cache lifetime. Now your post encouraged me.</p>
<p>Thank you very much</p>
<p>Harald</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=1791042013-08-27T01:49:34ZSven Tapperttappert@sven-t.de
<ul></ul><p>Hi Harald, your issue is related but it's a seperate problem. Generating non-cached pages might take really a LONG time on typo3 6.x, especially when the TS setup grows.</p>
<p>However, you could try the patch extension "cf_lifetime_patch" to prevent the regeneration of already cached pages.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=2021172014-02-02T20:32:51ZAndreas Wolfandreas.wolf@typo3.org
<ul><li><strong>Is Regression</strong> set to <i>No</i></li></ul><p>For cache_pagesection there is a patch pending in Gerrit (see <a class="issue tracker-4 status-5 priority-3 priority-lowest closed child" title="Task: Wrong expires date in cf_cache_pagesection (Closed)" href="http://forge.typo3.org/issues/39295">#39295</a>), for cache_rootline no such patch has been created, but that would be easy.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=2189922014-06-02T17:08:55ZAlexander Opitzopitz.alexander@googlemail.com
<ul></ul><p>As the mentioned issues <a class="issue tracker-1 status-5 priority-6 priority-high2 closed child" title="Bug: Massive speed problem from TYPO3 version 6.x at the first page request after long period (Closed)" href="http://forge.typo3.org/issues/51116">#51116</a> and <a class="issue tracker-4 status-5 priority-3 priority-lowest closed child" title="Task: Wrong expires date in cf_cache_pagesection (Closed)" href="http://forge.typo3.org/issues/39295">#39295</a> are already resolved.</p>
<p>Is something left to do here or can this issue be closed?</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=2202972014-06-15T00:42:31ZSven Tapperttappert@sven-t.de
<ul></ul><p>I have to do some testing. I'm not sure if the other issues were based on the same cause.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=2202982014-06-15T01:00:01ZSven Tapperttappert@sven-t.de
<ul></ul><p>No, it's NOT fixed in 6.1.9. It's because the default values for:</p>
<pre>
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_rootline']['options']['defaultLifetime']
</pre>
<p>and</p>
<pre>
$GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['cache_rootline']
</pre>
<p>are not set correctly. They have to be set to <code>\TYPO3\CMS\Core\Cache\Backend\AbstractBackend::UNLIMITED_LIFETIME;</code> (i.e. 0).</p>
<p>So the FE cache still expires after 1 hour :-(</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=2203212014-06-16T08:53:04ZAlexander Opitzopitz.alexander@googlemail.com
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>New</i></li></ul> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=2635912015-06-25T23:54:23ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>master</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="http://review.typo3.org/40659">http://review.typo3.org/40659</a></p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=2636202015-06-26T10:30:17ZChristian Kuhnlolli@schwarzbu.ch
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Resolved</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset <a class="changeset" title="[BUGFIX] Increase lifetime of cache_rootline The default lifetime of frontend related rootline c..." href="http://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/60cbc695a94d802ab76f4191b551fe5df9ea0d7e">60cbc695a94d802ab76f4191b551fe5df9ea0d7e</a>.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=2636242015-06-26T11:01:14ZGerrit Code Review
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Under Review</i></li></ul><p>Patch set 1 for branch <strong>TYPO3_6-2</strong> of project <strong>Packages/TYPO3.CMS</strong> has been pushed to the review server.<br />It is available at <a class="external" href="http://review.typo3.org/40666">http://review.typo3.org/40666</a></p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=2636262015-06-26T11:30:14ZChristian Kuhnlolli@schwarzbu.ch
<ul><li><strong>Status</strong> changed from <i>Under Review</i> to <i>Resolved</i></li></ul><p>Applied in changeset <a class="changeset" title="[BUGFIX] Increase lifetime of cache_rootline The default lifetime of frontend related rootline c..." href="http://forge.typo3.org/projects/typo3cms-core/repository/1749/revisions/0f4157bd59699aad87a19d3f41c694568fd423a9">0f4157bd59699aad87a19d3f41c694568fd423a9</a>.</p> TYPO3 Core - Bug #50231: Caching framework broken - cache expires after 1 hour (cf_cache_pagesection & cf_cache_rootline)http://forge.typo3.org/issues/50231?journal_id=3839452018-10-02T12:12:16ZBenni Mackbenni@typo3.org
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li></ul>