[BUGFIX] Invalid cache backend option "compression" for NullBackend 01/21801/2
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:01:52 +0000 (16:01 +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/21801
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Classes/Cache/Backend/NullBackend.php

index a1705f6..6d07d19 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
@@ -137,4 +147,4 @@ class NullBackend extends \TYPO3\CMS\Core\Cache\Backend\AbstractBackend implemen
 }
 
 
-?>
\ No newline at end of file
+?>