oyejorge / less.php

less.js ported to PHP.
http://lessphp.typesettercms.com
Apache License 2.0
656 stars 2 forks source link

Less_Cache: Regenerate cached sources on parser options change #290

Closed ivantcholakov closed 8 years ago

ivantcholakov commented 8 years ago

For now I need the following compilation options: 'compress' and 'relativeUrls'. When I use the compiler "on-the-fly", with caching, I noticed that when I change the compiler option 'compress', the generated output does not change, i.e. the LESS cache is not sensible to $parser_options change.

I think, the cache should regenerate in such cases, triggering could be based also on a previously stored value, for example: sha1(serialize($parser_options))

oyejorge commented 8 years ago

Should be fixed by #295

ivantcholakov commented 8 years ago

I doubt that #295 implements this feature, because the generated $hash does not depend on $parser_options at all.