diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-09-07 12:27:47 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-09-07 13:42:22 +0200 |
commit | 9ea7817a4074ba63a95bda9d0937e7ff01ac2e85 (patch) | |
tree | 6d32517d9540a5a71e18b0640d23ac97b7f36e87 | |
parent | 73d726d1b26f011e77761934bcf7f5ce8db86241 (diff) | |
download | nextcloud-server-9ea7817a4074ba63a95bda9d0937e7ff01ac2e85.tar.gz nextcloud-server-9ea7817a4074ba63a95bda9d0937e7ff01ac2e85.zip |
Remove core.{css,js} cache on upgrade
-rw-r--r-- | lib/base.php | 1 | ||||
-rw-r--r-- | lib/minimizer.php | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 6c556e3d19c..cbcbdd2ad03 100644 --- a/lib/base.php +++ b/lib/base.php @@ -219,6 +219,7 @@ class OC{ $tmpl->printPage(); exit; } + OC_Minimizer::clearCache(); OC_Config::setValue('version', implode('.', OC_Util::getVersion())); OC_App::checkAppsRequirements(); diff --git a/lib/minimizer.php b/lib/minimizer.php index 3dc89e331a6..6e425efad55 100644 --- a/lib/minimizer.php +++ b/lib/minimizer.php @@ -45,6 +45,12 @@ abstract class OC_Minimizer { header('Content-Length: '.strlen($out)); echo $out; } + + public function clearCache() { + $cache = OC_Cache::getGlobalCache(); + $cache->delete('core.css.gz'); + $cache->delete('core.js.gz'); + } } if (!function_exists('gzdecode')) { |