From 32f5c028a00e0a7a402d0f46e83ffc25f0d92dea Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 21 May 2017 22:10:00 +0200 Subject: 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(-) (limited to 'lib/private') diff --git a/lib/private/Template/SCSSCacher.php b/lib/private/Template/SCSSCacher.php index c31a255e441..6b1c594bd2e 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; -- cgit v1.2.3