Skip to content

Commit c1fe25a

Browse files
committed
wp-cron to 10 min
1 parent b01bb97 commit c1fe25a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/crontabs/root

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
# 2>&1 redirects the output include both the Standard Error and Standard Out. Look details https://tldp.org/LDP/abs/html/io-redirection.html
1111

1212
# Example
13-
# * * * * * [flock -n <path-to-lck-file>] <some-command> >><path-to-log-file> 2>&1
14-
# * * * * * [flock -n <path-to-lck-file>] <some-command> >/dev/null 2>&1
13+
# * * * * * [flock -n <path-to-lck-file>] <some-command> >> <path-to-log-file> 2>&1
14+
# * * * * * [flock -n <path-to-lck-file>] <some-command> > /dev/null 2>&1
1515

1616

1717

1818
# Let's run!
1919

2020
# WordPress cron run by system cron
21-
*/30 * * * * docker exec ${APP_NAME}_wordpress flock -n /var/log/wordpress/wp-cron.lck php /var/www/html/wp-cron.php >> /var/log/cron.log 2>&1
21+
*/10 * * * * docker exec ${APP_NAME}_wordpress flock -n /var/log/wordpress/wp-cron.lck php /var/www/html/wp-cron.php >> /var/log/cron.log 2>&1
2222

2323

2424
# Backup database and media

config/environment/.env.main

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
# App info
27-
APP_NAME=YourAppName
27+
APP_NAME=your_app_name
2828
APP_TYPE=wordpress
2929

3030

0 commit comments

Comments
 (0)