Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@googlemail.com>2014-08-14 23:14:44 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-08-14 23:14:44 +0400
commit4541f97ee10142b3af7ed629097c341cd3ec75a4 (patch)
treef4c16406564baf878719db07c606182264f13c82 /core
parent8d380109f4a59ae115f0de61add9b1f73c1131b7 (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.php3
-rw-r--r--core/Updates/2.5.0-rc4.php2
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();
}
}