[BUGFIX] Flush opcode caches while saving PHP files. 24/27024/20
authorAlexander Opitz <opitz.alexander@googlemail.com>
Thu, 23 Jan 2014 13:43:36 +0000 (14:43 +0100)
committerMarkus Klein <klein.t3@mfc-linz.at>
Tue, 4 Mar 2014 16:05:06 +0000 (17:05 +0100)
commit8c12dd0f2e877405adfb4b8fdd3622bd489a7e2f
treec605569952c45c4b51e12f87250277a39f37897b
parent50a08fc8e8ed438e279688c496314268b7df00b2
[BUGFIX] Flush opcode caches while saving PHP files.

After manipulating PHP files, which we include with "require" we should
clear the opcode cache, if there is one installed.

So we introduce OpcodeCacheUtility to handle the clearing of the opcode
cache. Also to have a way to give feedback to the install tool which
can show the quality of the opcode cache in use. It also checks if an
opcode cache is enabled in the configuration, not only if the extension
is installed.

Use of this opcode cache clearing is added to the ConfigurationManager,
PackageManager and the cache (Simple)FileBackend.

Make use of this data in the SystemEnvironmentCheck.

Resolves: #55252
Releases: 6.2, 6.1, 6.0
Change-Id: I881f3fbe055c9566663c2c3c238de62ae30f7149
Reviewed-on: https://review.typo3.org/27024
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/Cache/Backend/FileBackend.php
typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php
typo3/sysext/core/Classes/Configuration/ConfigurationManager.php
typo3/sysext/core/Classes/Package/PackageManager.php
typo3/sysext/core/Classes/Utility/OpcodeCacheUtility.php [new file with mode: 0644]
typo3/sysext/install/Classes/SystemEnvironment/Check.php