Merge pull request #9020 from nextcloud/stable13-8983

[stable13] Clear any theming prefixed cache on cache buster increase
This commit is contained in:
Morris Jobke 2018-04-03 10:09:33 +02:00 committed by GitHub
commit 4f5d057777
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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();
}
/**

View File

@ -276,7 +276,7 @@ class ThemingDefaultsTest extends TestCase {
$this->cache
->expects($this->once())
->method('clear')
->with('getScssVariables');
->with('');
$this->template->set('MySetting', 'MyValue');
}