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 /lib/minimizer.php | |
parent | 73d726d1b26f011e77761934bcf7f5ce8db86241 (diff) | |
download | nextcloud-server-9ea7817a4074ba63a95bda9d0937e7ff01ac2e85.tar.gz nextcloud-server-9ea7817a4074ba63a95bda9d0937e7ff01ac2e85.zip |
Remove core.{css,js} cache on upgrade
Diffstat (limited to 'lib/minimizer.php')
-rw-r--r-- | lib/minimizer.php | 6 |
1 files changed, 6 insertions, 0 deletions
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')) { |