mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-05 16:17:28 +02:00
refactor(cache): extract and encapsulate cache expiration logic (#3547)
* refactor(cache): extract and encapsulate cache expiration logic * fix: logic bug in getSimpleHTMLDOMCached * fix: silly me, index should of course be on the key column * silly me again, PRIMARY keys get index by default lol * comment out the delete portion in loadData * remove a few log statements * tweak twitter cache timeout
This commit is contained in:
@@ -12,7 +12,7 @@ class NullCache implements CacheInterface
|
||||
{
|
||||
}
|
||||
|
||||
public function loadData()
|
||||
public function loadData(int $timeout = 86400)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class NullCache implements CacheInterface
|
||||
return null;
|
||||
}
|
||||
|
||||
public function purgeCache(int $seconds): void
|
||||
public function purgeCache(int $timeout = 86400): void
|
||||
{
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user