mirror of
https://github.com/flarum/framework.git
synced 2025-06-19 08:32:21 +08: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:
@ -81,6 +81,10 @@ class RevisionCompiler implements CompilerInterface
|
|||||||
$cacheDifferentiator[] = [$source, filemtime($source)];
|
$cacheDifferentiator[] = [$source, filemtime($source)];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
foreach ($this->strings as $callback) {
|
||||||
|
$cacheDifferentiator[] = $callback();
|
||||||
|
}
|
||||||
|
|
||||||
$current = hash('crc32b', serialize($cacheDifferentiator));
|
$current = hash('crc32b', serialize($cacheDifferentiator));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user