X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FClearCache.php;h=d60d5729f8b8c2a72038160bb4fae3ae5ca851e0;hb=175c15506f7fd98bb9916e392ca837d68a0dfe85;hp=baf15387da5b4ece7092a9d2dbaf2f1acc3ae355;hpb=a06d6994805d0c7ad63c9aaab6ff2b997a9f9a93;p=friendica.git diff --git a/src/Worker/ClearCache.php b/src/Worker/ClearCache.php index baf15387da..d60d5729f8 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()]); } }