Skip to content

Commit 8a1e58b

Browse files
committed
🐛 default cache not working
1 parent 25fcdc0 commit 8a1e58b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

classes/Blueprints/Blueprint.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Blueprint
1616

1717
public function __construct(private readonly string $modelClass, private ?bool $defer = null, private ?int $cache = null)
1818
{
19-
$isCacheable = false;
19+
$isCacheable = null;
2020
$rc = new ReflectionClass($modelClass);
2121
foreach ($rc->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
2222
foreach ($method->getAttributes() as $attribute) {
@@ -56,7 +56,7 @@ public function blueprintCacheKeyFromModel(): string
5656
public function toArray(): array
5757
{
5858
$key = $this->blueprintCacheKeyFromModel();
59-
$blueprint = $this->cache ? BlueprintCache::get($key, null, $this->cache) : null;
59+
$blueprint = BlueprintCache::get($key, null, $this->cache);
6060
if ($blueprint) {
6161
return [$key => $blueprint];
6262
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby-blueprints",
33
"type": "kirby-plugin",
4-
"version": "4.4.2",
4+
"version": "4.4.3",
55
"license": "MIT",
66
"homepage": "https://github.com/bnomei/kirby3-blueprints",
77
"description": "PHP Class-based Blueprints for Kirby CMS for better type safety and code completion",

vendor/composer/installed.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php return array(
22
'root' => array(
33
'name' => 'bnomei/kirby-blueprints',
4-
'pretty_version' => '4.4.2',
5-
'version' => '4.4.2.0',
4+
'pretty_version' => '4.4.3',
5+
'version' => '4.4.3.0',
66
'reference' => null,
77
'type' => 'kirby-plugin',
88
'install_path' => __DIR__ . '/../../',
@@ -11,8 +11,8 @@
1111
),
1212
'versions' => array(
1313
'bnomei/kirby-blueprints' => array(
14-
'pretty_version' => '4.4.2',
15-
'version' => '4.4.2.0',
14+
'pretty_version' => '4.4.3',
15+
'version' => '4.4.3.0',
1616
'reference' => null,
1717
'type' => 'kirby-plugin',
1818
'install_path' => __DIR__ . '/../../',

0 commit comments

Comments
 (0)