Skip to content

Commit

Permalink
BUGS-4805: Re-enables cron for site networks to avoid primary URL iss…
Browse files Browse the repository at this point in the history
…ues.
  • Loading branch information
Pantheon Automation committed Apr 27, 2022
1 parent 7e64349 commit 85b43cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-config-pantheon.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
*/

/** Disable wp-cron.php from running on every page load and rely on Pantheon to run cron via wp-cli */
if ( ! defined( 'DISABLE_WP_CRON' ) ) {
$network = isset($_ENV["FRAMEWORK"]) && $_ENV["FRAMEWORK"] === "wordpress_network";
if ( ! defined( 'DISABLE_WP_CRON' ) && $network === false) {
define( 'DISABLE_WP_CRON', true );
}

0 comments on commit 85b43cb

Please sign in to comment.