From d6d9fc4007f8c960fce5330f215d5134e690d419 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Fri, 19 Mar 2021 13:11:24 +0100 Subject: [PATCH] Adjust cron interval to 5 minutes - That's remcommended interval and should decrease system load --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 45e5931..e47c69d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,7 +43,7 @@ ENV CRON_ENABLED true ENV VIRTUAL_HOST your-domain.com ADD rootfs / -RUN echo "* * * * * /usr/local/bin/wp cron event run --due-now" >> /etc/crontabs/www-data \ +RUN echo "*/5 * * * * /usr/local/bin/wp cron event run --due-now" >> /etc/crontabs/www-data \ && chmod a+x /usr/local/bin/wp VOLUME ["/root/.wp-cli", "/var/www/${WEB_ROOT}", "/var/www/${WEB_ROOT}/wp-content"]