]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove core.{css,js} cache on upgrade
authorBart Visscher <bartv@thisnet.nl>
Fri, 7 Sep 2012 10:27:47 +0000 (12:27 +0200)
committerBart Visscher <bartv@thisnet.nl>
Fri, 7 Sep 2012 11:42:22 +0000 (13:42 +0200)
lib/base.php
lib/minimizer.php

index 6c556e3d19c63f7ff1b19ec5c6d9f123274c8fb7..cbcbdd2ad03d2dab84c528a31235c5de52c7b963 100644 (file)
@@ -219,6 +219,7 @@ class OC{
                                        $tmpl->printPage();
                                        exit;
                                }
+                               OC_Minimizer::clearCache();
 
                                OC_Config::setValue('version', implode('.', OC_Util::getVersion()));
                                OC_App::checkAppsRequirements();
index 3dc89e331a648f0498ab33b187052f0fc2fc1b59..6e425efad556ac365b74dcf7bccb03d9f4fb9d81 100644 (file)
@@ -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')) {