mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-03 01:25:21 +02:00
fix: various small notice fixes (#3474)
* fix(patreon): php notice * fix(pepperbridge): php notice * fix(ebay): php notice * fix(tiktok): php notice * fix(yandex): fix notice * fix(justwatch): notice * lint
This commit is contained in:
parent
372880b5ef
commit
748fc9fd65
9 changed files with 50 additions and 25 deletions
|
@ -420,14 +420,11 @@ function getSimpleHTMLDOMCached(
|
|||
$defaultBRText = DEFAULT_BR_TEXT,
|
||||
$defaultSpanText = DEFAULT_SPAN_TEXT
|
||||
) {
|
||||
Logger::debug(sprintf('Caching url %s, duration %d', $url, $duration));
|
||||
|
||||
// Initialize cache
|
||||
$cacheFactory = new CacheFactory();
|
||||
|
||||
$cache = $cacheFactory->create();
|
||||
$cache->setScope('pages');
|
||||
$cache->purgeCache(86400); // 24 hours (forced)
|
||||
$cache->purgeCache(86400);
|
||||
|
||||
$params = [$url];
|
||||
$cache->setKey($params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue