[BUGFIX] Increase lifetime of cache_rootline 59/40659/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 25 Jun 2015 21:45:56 +0000 (23:45 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 26 Jun 2015 08:13:55 +0000 (10:13 +0200)
The default lifetime of frontend related rootline cache is
only one hour, raising query load in production. This is
raised to 30 days now - same as cache_pagesection.
The rootline cache entries are tagged with pageId_* and
in cache group "pages", so the DataHandler automatically
drops those entries if pages are moved around or change.

Resolves: #50231
Releases: master, 6.2
Change-Id: I3839982058f8b78726c050d5a7da90c0f2588102
Reviewed-on: http://review.typo3.org/40659
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Frederic Gaus <frederic.gaus@flagbit.de>
Tested-by: Frederic Gaus <frederic.gaus@flagbit.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/core/Configuration/DefaultConfiguration.php

index 6995a0b..8d60290 100644 (file)
@@ -142,7 +142,7 @@ return array(
                                        'backend' => \TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class,
                                        'options' => array(
                                                'compression' => TRUE,
-                                               'defaultLifetime' => 2592000   //  30 days; set this to a lower value in case your cache gets too big
+                                               'defaultLifetime' => 2592000, // 30 days; set this to a lower value in case your cache gets too big
                                        ),
                                        'groups' => array('pages', 'all')
                                ),
@@ -163,7 +163,9 @@ return array(
                                'cache_rootline' => array(
                                        'frontend' => \TYPO3\CMS\Core\Cache\Frontend\VariableFrontend::class,
                                        'backend' => \TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class,
-                                       'options' => array(),
+                                       'options' => array(
+                                               'defaultLifetime' => 2592000, // 30 days; set this to a lower value in case your cache gets too big
+                                       ),
                                        'groups' => array('pages', 'all')
                                ),
                                'cache_imagesizes' => array(