[BUGFIX] Invalid cache backend option "compression" for NullBackend 95/21795/4
authorXavier Perseguers <xavier@typo3.org>
Tue, 2 Jul 2013 12:55:07 +0000 (14:55 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Tue, 2 Jul 2013 14:00:12 +0000 (16:00 +0200)
If a Typo3DatabaseBackend is changed to NullBackend, the compression flag
may be set and should be part of the NullBackend interface.

Change-Id: Id70dc582ddbe87eb8388dd79963364c23900e417
Fixes: #49585
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/21795
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/Cache/Backend/NullBackend.php

index 5f64ccd..0c0aa42 100644 (file)
@@ -49,6 +49,16 @@ class NullBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend implemen
        }
 
        /**
+        * Acts as if it would enable data compression
+        *
+        * @param boolean $compression ignored
+        * @return void
+        */
+       public function setCompression($compression) {
+
+       }
+
+       /**
         * Returns False
         *
         * @param string $entryIdentifier ignored