Merge pull request #8983 from nextcloud/fix-8888

Clear any theming prefixed cache on cache buster increase
This commit is contained in:
Roeland Jago Douma 2018-03-26 21:46:46 +02:00 committed by GitHub
commit fa09e0e670
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');
}