From 83c358902ce2a7ecb04449e520c0424ee5ca9d97 Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Fri, 25 Nov 2022 08:56:13 +0000
Subject: [PATCH] Add wp-cron to the container

---
 docker/conf/services.d/wpcron/run | 7 +++++++
 1 file changed, 7 insertions(+)
 create mode 100755 docker/conf/services.d/wpcron/run

diff --git a/docker/conf/services.d/wpcron/run b/docker/conf/services.d/wpcron/run
new file mode 100755
index 00000000..87c875f4
--- /dev/null
+++ b/docker/conf/services.d/wpcron/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+# Run WP-Cron periodically.
+# The "run-cron" execution takes a few minutes, so the actual period
+# comess out at something closer to 10 minutes.
+export BATCH_SIZE=300
+exec every 300 on-local-blogs run-cron >/dev/null 2>&1
+
-- 
GitLab