[TASK] Improve cache performance
authorDmitry Dulepov <dmitry@typo3.org>
Thu, 6 Oct 2011 12:32:35 +0000 (15:32 +0300)
committerSteffen Ritter <info@rs-websystems.de>
Tue, 29 Nov 2011 12:35:25 +0000 (13:35 +0100)
Pages and TS cache may contain a lot of data. According to studies
found on the Internet, saving long BLOBs to the database may cause
a major performance decrease. Enable compression to make chunks of
page and TS caches smaller.

This patch enables compression for cache_pages and cache_pagesection.

Change-Id: Ic40c5a419573e7890d475eab8bb55b3bb2d963bc
Resolves: #30605
Releases: 4.7
Reviewed-on: http://review.typo3.org/5595
Reviewed-by: Markus Klein
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Simon Schaufelberger
Tested-by: Simon Schaufelberger
Reviewed-by: Georg Ringer
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
t3lib/config_default.php

index 79e6e41..fd96b1e 100644 (file)
@@ -133,12 +133,16 @@ $TYPO3_CONF_VARS = array(
                                'cache_pages' => array(
                                        'frontend' => 't3lib_cache_frontend_VariableFrontend',
                                        'backend' => 't3lib_cache_backend_DbBackend',
-                                       'options' => array(),
+                                       'options' => array(
+                                               'compression' => TRUE
+                                       ),
                                ),
                                'cache_pagesection' => array(
                                        'frontend' => 't3lib_cache_frontend_VariableFrontend',
                                        'backend' => 't3lib_cache_backend_DbBackend',
-                                       'options' => array(),
+                                       'options' => array(
+                                               'compression' => TRUE
+                                       ),
                                ),
                                'cache_phpcode' => array(
                                        'frontend' => 't3lib_cache_frontend_PhpFrontend',
@@ -1106,4 +1110,4 @@ $SIM_EXEC_TIME = $EXEC_TIME;                      // $SIM_EXEC_TIME is set to $EXEC_TIME but can be
 $ACCESS_TIME = $EXEC_TIME - ($EXEC_TIME % 60);         // $ACCESS_TIME is a common time in minutes for access control
 $SIM_ACCESS_TIME = $ACCESS_TIME;               // if $SIM_EXEC_TIME is changed this value must be set accordingly
 
-?>
\ No newline at end of file
+?>