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