diff options
author | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-14 23:14:44 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@googlemail.com> | 2014-08-14 23:14:44 +0400 |
commit | 4541f97ee10142b3af7ed629097c341cd3ec75a4 (patch) | |
tree | f4c16406564baf878719db07c606182264f13c82 /core | |
parent | 8d380109f4a59ae115f0de61add9b1f73c1131b7 (diff) |
clear php caches if possible after updating piwik to 2.5.0 to make sure no file is still in cache
Diffstat (limited to 'core')
-rw-r--r-- | core/Updates/2.5.0-rc2.php | 3 | ||||
-rw-r--r-- | core/Updates/2.5.0-rc4.php | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/core/Updates/2.5.0-rc2.php b/core/Updates/2.5.0-rc2.php index 6dcd37e4be..c27a60cbf5 100644 --- a/core/Updates/2.5.0-rc2.php +++ b/core/Updates/2.5.0-rc2.php @@ -26,6 +26,9 @@ class Updates_2_5_0_rc2 extends Updates $path = PIWIK_INCLUDE_PATH . $file; if (file_exists($path)) { + if (function_exists('opcache_invalidate')) { + opcache_invalidate($file, $force = true); + } self::deleteIfLastModifiedBefore14August2014($path); } } diff --git a/core/Updates/2.5.0-rc4.php b/core/Updates/2.5.0-rc4.php index 19afa8b641..761a76e054 100644 --- a/core/Updates/2.5.0-rc4.php +++ b/core/Updates/2.5.0-rc4.php @@ -9,6 +9,7 @@ namespace Piwik\Updates; +use Piwik\Plugins\CoreUpdater\Controller; use Piwik\Tracker\Cache; use Piwik\Updates; @@ -21,5 +22,6 @@ class Updates_2_5_0_rc4 extends Updates static function update() { Cache::deleteTrackerCache(); + Controller::clearPhpCaches(); } } |