Skip to content

Commit

Permalink
feat: reset uikit cache on modules refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Apr 27, 2023
1 parent cc0ee69 commit 9c78245
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -1433,6 +1433,10 @@ public function realpath($file)
*/
public function refreshModules()
{
// refresh uikit cache
$this->wire->cache->save(self::cache, "");

// force recreation of assets
$dir = $this->wire->config->paths->assets . "RockFrontend/css/";
if (is_dir($dir)) $this->wire->files->rmdir($dir, true);
$this->forceRecompile();
Expand Down

0 comments on commit 9c78245

Please sign in to comment.