]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/ClearCache.php
Merge pull request #10190 from annando/api-attached
[friendica.git] / src / Worker / ClearCache.php
index 5eee4c74ab9a0429d243a3ff8dc3af9fd3c9c821..5b71c2f8be328a281500ca423514157c6aec5aa8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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()"]);
        }
 }