Skip to content

Commit

Permalink
🐛 default 60 sec for cache did not work (v3)
Browse files Browse the repository at this point in the history
Signed-off-by: bnomei <[email protected]>
  • Loading branch information
bnomei committed Aug 9, 2024
1 parent b3e7e52 commit de07954
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions classes/Blueprints/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ public function toArray(): array

// some might not be cacheable like when they are class based and have dynamic fields
// only set here now if they will not be written on __destruct by trait
// the cacha could be null which means it will use the default value
if (! in_array($this->cache, [false, 0]) && ! method_exists($this->modelClass, 'blueprintCacheKey')) {
// the cache could be null which means it will use the default value
if ($this->cache !== false && $this->cache !== 0 && ! method_exists($this->modelClass, 'blueprintCacheKey')) {
BlueprintCache::set($key, $blueprint);
}

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/kirby-blueprints",
"type": "kirby-plugin",
"version": "4.4.8",
"version": "4.4.9",
"license": "MIT",
"homepage": "https://github.com/bnomei/kirby3-blueprints",
"description": "PHP Class-based Blueprints for Kirby CMS for better type safety and code completion",
Expand Down
8 changes: 4 additions & 4 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php return array(
'root' => array(
'name' => 'bnomei/kirby-blueprints',
'pretty_version' => '4.4.8',
'version' => '4.4.8.0',
'pretty_version' => '4.4.9',
'version' => '4.4.9.0',
'reference' => null,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand All @@ -11,8 +11,8 @@
),
'versions' => array(
'bnomei/kirby-blueprints' => array(
'pretty_version' => '4.4.8',
'version' => '4.4.8.0',
'pretty_version' => '4.4.9',
'version' => '4.4.9.0',
'reference' => null,
'type' => 'kirby-plugin',
'install_path' => __DIR__ . '/../../',
Expand Down

0 comments on commit de07954

Please sign in to comment.