Rollback caching fix

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
pull/7688/head
John Molakvoæ (skjnldsv) 2018-01-05 08:34:32 +07:00
parent 7bc63f6135
commit 7a282dee89
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
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) {