[TASK] Clear opcode cache on Core update 87/34187/4
authorMarkus Klein <klein.t3@reelworx.at>
Fri, 14 Nov 2014 20:06:54 +0000 (21:06 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 20 Nov 2014 18:24:07 +0000 (19:24 +0100)
Resolves: #62966
Releases: master, 6.2
Change-Id: I54827b34c64cc6dbeb95e404d528ea3c1f0b14f9
Reviewed-on: http://review.typo3.org/34187
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/install/Classes/Service/CoreUpdateService.php

index 38fef8c..afca791 100644 (file)
@@ -15,6 +15,7 @@ namespace TYPO3\CMS\Install\Service;
  */
 
 use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Core\Utility\OpcodeCacheUtility;
 
 /**
  * Core update service.
@@ -431,7 +432,9 @@ class CoreUpdateService {
                                $messages[] = $message;
                        } else {
                                $symlinkResult = symlink($newCoreLocation, $this->currentCoreLocation);
-                               if (!$symlinkResult) {
+                               if ($symlinkResult) {
+                                       OpcodeCacheUtility::clearAllActive();
+                               } else {
                                        $success = FALSE;
                                        /** @var $message \TYPO3\CMS\Install\Status\StatusInterface */
                                        $message = $this->objectManager->get('TYPO3\\CMS\\Install\\Status\\ErrorStatus');
@@ -454,4 +457,4 @@ class CoreUpdateService {
        protected function getDownloadTarGzTargetPath($version) {
                return $this->downloadTargetPath . $version . '.tar.gz';
        }
-}
\ No newline at end of file
+}