mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 10:51:10 +01:00
Adjust cron interval to 5 minutes
- That's remcommended interval and should decrease system load
This commit is contained in:
parent
0087b332ea
commit
d6d9fc4007
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue
Block a user