Skip to content
Snippets Groups Projects
Commit 9ca01f17 authored by Lukas Toggenburger's avatar Lukas Toggenburger Committed by Demian Katz
Browse files

Enable less parser caching (#3)

The code already contained everything to enable less parser caching but the function Regen() was called instead of Get() for no apparent reason. Regen() is basically a wrapper around Get() that disables caching, see https://github.com/oyejorge/less.php/blob/master/lib/Less/Cache.php .
parent e790e708
No related merge requests found
...@@ -202,11 +202,11 @@ class LessCompiler ...@@ -202,11 +202,11 @@ class LessCompiler
); );
return; return;
} }
$outFile = \Less_Cache::Regen( $outFile = \Less_Cache::Get(
[$lessDir . $less => $this->fakePath . "themes/$theme/css/less"], [$lessDir . $less => $this->fakePath . "themes/$theme/css/less"],
[ [
'cache_dir' => $this->tempPath, 'cache_dir' => $this->tempPath,
'cache_method' => false, 'cache_method' => "php",
'compress' => true, 'compress' => true,
'import_dirs' => $directories 'import_dirs' => $directories
] ]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment