diff options
author | 2023-04-19 20:53:35 +0500 | |
---|---|---|
committer | 2023-04-19 17:53:35 +0200 | |
commit | 343fd36671cc1c30fa707334fa7be03d183d12d3 (patch) | |
tree | 3afb33d5eceb2e038d29da79cdcc23e463dfb65f /docs/05_Bridge_API | |
parent | a4a7473abb8d860acefc98bf1700321a8250ca83 (diff) | |
download | rss-bridge-343fd36671cc1c30fa707334fa7be03d183d12d3.tar.gz rss-bridge-343fd36671cc1c30fa707334fa7be03d183d12d3.tar.zst rss-bridge-343fd36671cc1c30fa707334fa7be03d183d12d3.zip |
[core] Remove hardcoded maximum duration of 24 hours in loadCacheValue (#3355)
Diffstat (limited to 'docs/05_Bridge_API')
-rw-r--r-- | docs/05_Bridge_API/02_BridgeAbstract.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/05_Bridge_API/02_BridgeAbstract.md b/docs/05_Bridge_API/02_BridgeAbstract.md index 954e7732..120361be 100644 --- a/docs/05_Bridge_API/02_BridgeAbstract.md +++ b/docs/05_Bridge_API/02_BridgeAbstract.md @@ -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: |