Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion wp/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down