Merge pull request #8983 from nextcloud/fix-8888
Clear any theming prefixed cache on cache buster increase
This commit is contained in:
commit
fa09e0e670
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -276,7 +276,7 @@ class ThemingDefaultsTest extends TestCase {
|
|||
$this->cache
|
||||
->expects($this->once())
|
||||
->method('clear')
|
||||
->with('getScssVariables');
|
||||
->with('');
|
||||
$this->template->set('MySetting', 'MyValue');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue