Update asset revision whenever custom LESS is changed

This should remove the need for a hard browser refresh whenever you
update the custom LESS.
This commit is contained in:
Toby Zerner 2017-11-05 16:27:28 +10:30
parent 1cc6c06946
commit a8cce49b85

View File

@ -81,6 +81,10 @@ class RevisionCompiler implements CompilerInterface
$cacheDifferentiator[] = [$source, filemtime($source)];
}
foreach ($this->strings as $callback) {
$cacheDifferentiator[] = $callback();
}
$current = hash('crc32b', serialize($cacheDifferentiator));
}