fix: respect cache render options

This commit is contained in:
Martin Schuster
2020-04-03 10:42:32 +08:00
committed by Jun Yang
parent 3cf8072df5
commit a93f11d25a
3 changed files with 64 additions and 6 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ export class Liquid {
}
for (const filepath of paths) {
const { cache } = this.options
const { cache } = options
if (cache) {
const tpls = yield cache.read(filepath)
if (tpls) return tpls