X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FClearCache.php;h=026e7f4d80034aafd1f3c14bf05a8b3b9d71a60f;hb=60532ee7e4152af9997e0d7b69c7b35262d5528d;hp=baf15387da5b4ece7092a9d2dbaf2f1acc3ae355;hpb=a06d6994805d0c7ad63c9aaab6ff2b997a9f9a93;p=friendica.git diff --git a/src/Worker/ClearCache.php b/src/Worker/ClearCache.php index baf15387da..026e7f4d80 100644 --- a/src/Worker/ClearCache.php +++ b/src/Worker/ClearCache.php @@ -1,6 +1,6 @@ clear(); // Delete the cached OEmbed entries that are older than three month - DBA::delete('oembed', ["`created` < NOW() - INTERVAL 3 MONTH"]); + DBA::delete('oembed', ["`created` < ?", DateTimeFormat::utc('now - 3 months')]); // Delete the cached "parsed_url" entries that are expired - DBA::delete('parsed_url', ["`expires` < NOW()"]); + DBA::delete('parsed_url', ["`expires` < ?", DateTimeFormat::utcNow()]); } }