]> source.dussan.org Git - nextcloud-server.git/commitdiff
Set SCSS dependencies to memcache on compile
authorRoeland Jago Douma <roeland@famdouma.nl>
Sun, 21 May 2017 20:10:00 +0000 (22:10 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 21 May 2017 20:12:47 +0000 (22:12 +0200)
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 <roeland@famdouma.nl>
lib/private/Template/SCSSCacher.php

index c31a255e441177b9d9259cb9c31b7a837919b0df..6b1c594bd2ec41b53ef7b43ea2e43028157d3485 100644 (file)
@@ -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;