Last active
October 10, 2018 17:24
-
-
Save uaibo/d1f4e2c2a212d629eb0af4abbb54f36f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE a,c | |
FROM wp_posts a | |
LEFT JOIN wp_postmeta c ON ( a.ID = c.post_id ) | |
WHERE a.post_type = 'post' | |
AND DATEDIFF(NOW(), a.post_date) > 300 | |
Delete posts from x category | |
------------ | |
DELETE a,b,c,d | |
FROM wp_posts a | |
LEFT JOIN wp_term_relationships b ON ( a.ID = b.object_id ) | |
LEFT JOIN wp_postmeta c ON ( a.ID = c.post_id ) | |
LEFT JOIN wp_term_taxonomy d ON ( d.term_taxonomy_id = b.term_taxonomy_id ) | |
LEFT JOIN wp_terms e ON ( e.term_id = d.term_id ) | |
WHERE e.term_id=2174 | |
cron job | |
---------- | |
wget --quiet --spider "URL_TO_FILE" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment