mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Rollback caching fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
7bc63f6135
commit
7a282dee89
1 changed files with 4 additions and 3 deletions
|
|
@ -111,6 +111,10 @@ class SCSSCacher {
|
|||
$folder = $this->appData->newFolder($app);
|
||||
}
|
||||
|
||||
if(!$this->variablesChanged() && $this->isCached($fileNameCSS, $folder)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return $this->cache($path, $fileNameCSS, $fileNameSCSS, $folder, $webDir);
|
||||
}
|
||||
|
||||
|
|
@ -131,9 +135,6 @@ class SCSSCacher {
|
|||
* @return boolean
|
||||
*/
|
||||
private function isCached($fileNameCSS, ISimpleFolder $folder) {
|
||||
if ($this->variablesChanged()) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
$cachedFile = $folder->getFile($fileNameCSS);
|
||||
if ($cachedFile->getSize() > 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue