Skip to content

Commit 93a3a05

Browse files
author
Sonja Broda
committed
Fix cache flush issue
1 parent e1b15d4 commit 93a3a05

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "texnixe/similar",
33
"description": "Find similar pages or files based on similarities between fields",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"type": "kirby-plugin",
66
"license": "MIT",
77
"authors": [

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
/**
55
* Kirby 3 Similar Plugin
66
*
7-
* @version 1.0.0
8-
* @author Sonja Broda <[email protected]>
9-
* @copyright Sonja Broda <[email protected]>
7+
* @version 1.0.1
8+
* @author Sonja Broda <[email protected]>
9+
* @copyright Sonja Broda <[email protected]>
1010
* @link https://github.com/texnixe/kirby3-similar
1111
* @license MIT
1212
*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Kirby 3 Similar plugin",
44
"author": "Sonja Broda <[email protected]>",
55
"license": "MIT",
6-
"version": "1.0.0",
6+
"version": "1.0.1",
77
"repository": {
88
"type": "git",
99
"url": "https://github.com/texnixe/kirby3-similar"

src/Similar.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ private static function cache(): \Kirby\Cache\Cache
2424

2525
public static function flush()
2626
{
27-
return static::cache()->flush();
27+
if (static::$cache) {
28+
return static::cache()->flush();
29+
}
2830
}
2931

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

0 commit comments

Comments
 (0)