[FEATURE] Add wincache and zend to opcode cache check 60/19460/4
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 31 Mar 2013 14:33:16 +0000 (16:33 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 31 Mar 2013 15:35:14 +0000 (17:35 +0200)
Change-Id: Id467f5f9a7b99075ede94532cd3e9a49131a1287
Resolves: #46612
Releases: 6.1
Reviewed-on: https://review.typo3.org/19460
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/install/Classes/SystemEnvironment/Check.php

index d0a0c64..728eb48 100644 (file)
@@ -663,15 +663,19 @@ class Check {
        }
 
        /**
-        * Check apt, xcache or eaccelerator is loaded
+        * Check if some opcode cache is loaded
         *
         * @return WarningStatus|OkStatus
         */
        protected function checkSomePhpOpcodeCacheIsLoaded() {
-               $eAcceleratorLoaded = extension_loaded('eaccelerator');
-               $xCacheLoaded = extension_loaded('xcache');
-               $apcLoaded = extension_loaded('apc');
-               if ($eAcceleratorLoaded || $xCacheLoaded || $apcLoaded) {
+               if (
+                       extension_loaded('eaccelerator')
+                       || extension_loaded('xcache')
+                       || extension_loaded('apc')
+                       || extension_loaded('Zend Optimizer+')
+                       || extension_loaded('Zend OPcache')
+                       || extension_loaded('wincache')
+               ) {
                        $status = new OkStatus();
                        $status->setTitle('A PHP opcode cache is loaded');
                } else {
@@ -683,8 +687,8 @@ class Check {
                                ' This can be a massive performance improvement and can put load off a' .
                                ' server in general, a parse time reduction by factor three for full cached' .
                                ' pages can be achieved easily if using some opcode cache.' .
-                               ' If in doubt choosing one, apc is officially supported by PHP and can be' .
-                               ' used as data cache layer in TYPO3 CMS as additional feature.'
+                               ' If in doubt choosing one, APC runs well and can be used as data' .
+                               ' cache layer in TYPO3 CMS as additional feature.'
                        );
                }
                return $status;