aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Template/JSCombiner.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Template/JSCombiner.php b/lib/private/Template/JSCombiner.php
index e9e4333c380..89ef9787f17 100644
--- a/lib/private/Template/JSCombiner.php
+++ b/lib/private/Template/JSCombiner.php
@@ -121,7 +121,9 @@ class JSCombiner {
$fileName = $fileName . '.deps';
try {
$deps = $this->depsCache->get($folder->getName() . '-' . $fileName);
+ $fromCache = true;
if ($deps === null || $deps === '') {
+ $fromCache = false;
$depFile = $folder->getFile($fileName);
$deps = $depFile->getContent();
}
@@ -144,6 +146,10 @@ class JSCombiner {
}
}
+ if ($fromCache === false) {
+ $this->depsCache->set($folder->getName() . '-' . $fileName, json_encode($deps));
+ }
+
return true;
} catch (NotFoundException $e) {
return false;