Last active
January 23, 2024 07:16
-
-
Save mehrshaddarzi/349537b621bc32d787fd29161353aef1 to your computer and use it in GitHub Desktop.
WordPress CronJob
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
``` | |
mysqldump --column-statistics=0 --no-tablespaces --host="localhost" --user="xxxx" --password="xxx" "db_name" | gzip > ~/.backup-database/db_`date +\%Y-\%m-\%d_\%H-\%M-\%S`.sql.gz | |
``` | |
``` | |
wget -q -O - https://xxxx.com/wp-cron.php?doing_wp_cron >/dev/null 2>&1 | |
``` | |
``` | |
wget -O /dev/null --spider --no-cache "https://xxx.com/?_sepidar_cron=product" >/dev/null 2>&1 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment