Skip to content

Commit be3be4f

Browse files
committed
Changelog + cast seconds to int
1 parent 4d49a9f commit be3be4f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
## 0.5.10 - 2022-02-01
6+
57
### Added
68
- Added the ability to define multiple themes for e.g. dark mode.
79
- Cache time is now configurable.

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ protected function setCacheFromBlocks(Collection $blocks, Collection $ids)
172172
}
173173

174174
if (count($value)) {
175-
$seconds = Torchlight::config('cache_seconds', 7 * 24 * 60 * 60);
175+
$seconds = (int)Torchlight::config('cache_seconds', 7 * 24 * 60 * 60);
176176
Torchlight::cache()->put($this->cacheKey($block), $value, $seconds);
177177
}
178178
});

0 commit comments

Comments
 (0)