1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-05 16:17:28 +02:00

[core] Remove hardcoded maximum duration of 24 hours in loadCacheValue (#3355)

This commit is contained in:
Eugene Molotov
2023-04-19 20:53:35 +05:00
committed by GitHub
parent a4a7473abb
commit 343fd36671
4 changed files with 7 additions and 7 deletions

View File

@@ -489,11 +489,11 @@ public function collectData()
Within the context of the current bridge, loads a value by key from cache. Optionally specifies the cache duration for the key. Returns `null` if the key doesn't exist or the value is expired.
```php
protected function loadCacheValue($key, $duration = 86400)
protected function loadCacheValue($key, $duration = null)
```
- `$key` - the name under which the value is stored in the cache.
- `$duration` - the maximum time in seconds after which the value expires. The default duration is 86400 (24 hours).
- `$duration` - the maximum time in seconds after which the value expires.
Usage example: