From aae6aba97096c6c7c3559b4c2c782553e4c1b715 Mon Sep 17 00:00:00 2001 From: Mitch MacKenzie Date: Sun, 13 Apr 2025 22:02:43 -0300 Subject: [PATCH] wp-config tweaks to decrease burden sqlite file --- wp/wp-config.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wp/wp-config.php b/wp/wp-config.php index 3e3083f85..c41b4acac 100644 --- a/wp/wp-config.php +++ b/wp/wp-config.php @@ -124,11 +124,17 @@ define('DB_FILE', 'wp-sqlite-s3.sqlite'); } -// Auto-cron is can cause db race conditions on these urls, don't bother with it. +// Auto-cron can cause db race conditions on these urls, don't bother with it. if (strpos($_SERVER['REQUEST_URI'], 'wp-admin') !== false || strpos($_SERVER['REQUEST_URI'], 'wp-login') !== false) { define('DISABLE_WP_CRON', true); } +// Increase time between cron runs (2 hours) to reduce DB writes. +define('WP_CRON_LOCK_TIMEOUT', 7200); + +// Limit revisions. +define('WP_POST_REVISIONS', 3); + /* That's all, stop editing! Happy publishing. */ /** Absolute path to the WordPress directory. */