From cf1f77537df1dc39d5dc08d7aeb08732c3b34046 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 21 May 2017 22:10:00 +0200 Subject: [PATCH] Set SCSS dependencies to memcache on compile Else when an upgrade happens we will recompile all the SCSS files all the time (until the cache expires). Signed-off-by: Roeland Jago Douma --- lib/private/Template/SCSSCacher.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php index c31a255e44..6b1c594bd2 100644 --- a/lib/private/Template/SCSSCacher.php +++ b/lib/private/Template/SCSSCacher.php @@ -226,7 +226,9 @@ class SCSSCacher { try { $data = $this->rebaseUrls($compiledScss, $webDir); $cachedfile->putContent($data); - $depFile->putContent(json_encode($scss->getParsedFiles())); + $deps = json_encode($scss->getParsedFiles()); + $depFile->putContent($deps); + $this->depsCache->set($folder->getName() . '-' . $depFileName, $deps); $gzipFile->putContent(gzencode($data, 9)); $this->logger->debug($webDir.'/'.$fileNameSCSS.' compiled and successfully cached', ['app' => 'core']); return true;