summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2017-05-21 22:10:00 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2017-05-21 22:10:00 +0200
commit32f5c028a00e0a7a402d0f46e83ffc25f0d92dea (patch)
tree78f520e6aeb1c95fdfde40c76d09aa34d31abc6c /lib
parent5b39c6fdd080a01c8bce2e653ef172974ae7308f (diff)
downloadnextcloud-server-32f5c028a00e0a7a402d0f46e83ffc25f0d92dea.tar.gz
nextcloud-server-32f5c028a00e0a7a402d0f46e83ffc25f0d92dea.zip
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 <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Template/SCSSCacher.php4
1 files changed, 3 insertions, 1 deletions
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;