diff --git a/composer.json b/composer.json index 7b7ae67..335d1a5 100644 --- a/composer.json +++ b/composer.json @@ -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": [ diff --git a/index.php b/index.php index f7c5080..726945f 100755 --- a/index.php +++ b/index.php @@ -4,9 +4,9 @@ /** * Kirby 3 Similar Plugin * - * @version 1.0.0 - * @author Sonja Broda - * @copyright Sonja Broda + * @version 1.0.1 + * @author Sonja Broda + * @copyright Sonja Broda * @link https://github.com/texnixe/kirby3-similar * @license MIT */ diff --git a/package.json b/package.json index 98fae7c..2c1da02 100755 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "description": "Kirby 3 Similar plugin", "author": "Sonja Broda ", "license": "MIT", - "version": "1.0.0", + "version": "1.0.1", "repository": { "type": "git", "url": "https://github.com/texnixe/kirby3-similar" diff --git a/src/Similar.php b/src/Similar.php index 18d3e6c..b2d1b29 100644 --- a/src/Similar.php +++ b/src/Similar.php @@ -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 = [])