Updated Uiharu to latest Index + use CacheProvider for caching results.

This commit is contained in:
flash 2024-10-23 19:40:47 +00:00
parent c581646f23
commit 26431aeb79
13 changed files with 827 additions and 151 deletions
public

View file

@ -3,9 +3,6 @@ namespace Uiharu;
require_once __DIR__ . '/../uiharu.php';
// should be in a cron job
$db->execute('DELETE FROM `uih_metadata_cache` WHERE `metadata_created` < NOW() - INTERVAL 7 DAY');
$ctx->registerLookup(new \Uiharu\Lookup\EEPROMLookup('eeprom', 'eeprom.flashii.net', ['i.fii.moe', 'i.flashii.net']));
if(UIH_DEBUG)
$ctx->registerLookup(new \Uiharu\Lookup\EEPROMLookup('devrom', 'eeprom.edgii.net', ['i.edgii.net']));