Skip to content

Commit

Permalink
Fix cache flush issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonja Broda committed Jul 25, 2019
1 parent e1b15d4 commit 93a3a05
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "texnixe/similar",
"description": "Find similar pages or files based on similarities between fields",
"version": "1.0.0",
"version": "1.0.1",
"type": "kirby-plugin",
"license": "MIT",
"authors": [
Expand Down
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
/**
* Kirby 3 Similar Plugin
*
* @version 1.0.0
* @author Sonja Broda <[email protected]>
* @copyright Sonja Broda <[email protected]>
* @version 1.0.1
* @author Sonja Broda <[email protected]>
* @copyright Sonja Broda <[email protected]>
* @link https://github.com/texnixe/kirby3-similar
* @license MIT
*/
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Kirby 3 Similar plugin",
"author": "Sonja Broda <[email protected]>",
"license": "MIT",
"version": "1.0.0",
"version": "1.0.1",
"repository": {
"type": "git",
"url": "https://github.com/texnixe/kirby3-similar"
Expand Down
4 changes: 3 additions & 1 deletion src/Similar.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ private static function cache(): \Kirby\Cache\Cache

public static function flush()
{
return static::cache()->flush();
if (static::$cache) {
return static::cache()->flush();
}
}

public static function data($basis, $options = [])
Expand Down

0 comments on commit 93a3a05

Please sign in to comment.