diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-03-26 21:46:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-26 21:46:46 +0200 |
commit | fa09e0e670ebb2eda66b45d421c912605c321727 (patch) | |
tree | 00b863fee54658ae81396758b9a2d20096165944 /apps | |
parent | 36dbd7ec8f2af50ce409d9ccc5fd23fd83913263 (diff) | |
parent | af4acdc6d664310c988d0ac9244338d2fc07a62a (diff) | |
download | nextcloud-server-fa09e0e670ebb2eda66b45d421c912605c321727.tar.gz nextcloud-server-fa09e0e670ebb2eda66b45d421c912605c321727.zip |
Merge pull request #8983 from nextcloud/fix-8888
Clear any theming prefixed cache on cache buster increase
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 2 | ||||
-rw-r--r-- | apps/theming/tests/ThemingDefaultsTest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 688878bb50a..ce4ab0abb55 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -320,7 +320,7 @@ class ThemingDefaults extends \OC_Defaults { private function increaseCacheBuster() { $cacheBusterKey = $this->config->getAppValue('theming', 'cachebuster', '0'); $this->config->setAppValue('theming', 'cachebuster', (int)$cacheBusterKey+1); - $this->cacheFactory->createDistributed('theming-')->clear('getScssVariables'); + $this->cacheFactory->createDistributed('theming-')->clear(); } /** diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php index 2e1ad44b7aa..2485a471bf4 100644 --- a/apps/theming/tests/ThemingDefaultsTest.php +++ b/apps/theming/tests/ThemingDefaultsTest.php @@ -276,7 +276,7 @@ class ThemingDefaultsTest extends TestCase { $this->cache ->expects($this->once()) ->method('clear') - ->with('getScssVariables'); + ->with(''); $this->template->set('MySetting', 'MyValue'); } |