mirror of
https://github.com/flarum/core.git
synced 2025-02-25 03:33:42 +01:00
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:
parent
41df32f66e
commit
15b573bd93
@ -81,6 +81,10 @@ class RevisionCompiler implements CompilerInterface
|
||||
$cacheDifferentiator[] = [$source, filemtime($source)];
|
||||
}
|
||||
|
||||
foreach ($this->strings as $callback) {
|
||||
$cacheDifferentiator[] = $callback();
|
||||
}
|
||||
|
||||
$current = hash('crc32b', serialize($cacheDifferentiator));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user