Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
🐛 fixed partials causing errors on flush()
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Meilick <[email protected]>
  • Loading branch information
bnomei committed Feb 26, 2020
1 parent 8a553fc commit 3c383c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions classes/LncFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,11 @@ public function flush()
{
kirby()->cache('bnomei.handlebars.files')->flush();

$lncCacheRoot = $this->lncCacheRoot();
if (Dir::remove($lncCacheRoot)) {
Dir::make($lncCacheRoot);
$files = glob($this->lncCacheRoot());
foreach($files as $file){
if(is_file($file)) {
@unlink($file);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bnomei/kirby3-handlebars",
"type": "kirby-plugin",
"version": "3.2.5",
"version": "3.2.6",
"license": "MIT",
"description": "Kirby 3 Component for semantic templates with Handlebars and Mustache",
"authors": [
Expand Down

0 comments on commit 3c383c3

Please sign in to comment.