Add native media types and expiration to getSiteInfo

This commit is contained in:
Hypolite Petovan 2021-02-16 10:16:04 -05:00
parent 7de03eb13f
commit 69802554fd
3 changed files with 56 additions and 37 deletions

View file

@ -64,7 +64,7 @@ class ClearCache
// Delete the cached OEmbed entries that are older than three month
DBA::delete('oembed', ["`created` < NOW() - INTERVAL 3 MONTH"]);
// Delete the cached "parse_url" entries that are older than three month
DBA::delete('parsed_url', ["`created` < NOW() - INTERVAL 3 MONTH"]);
// Delete the cached "parsed_url" entries that are expired
DBA::delete('parsed_url', ["`expires` < NOW()"]);
}
}