Running WP-Cron on Multisite networks the right way?

After you’ve added the constant in wp-config.php defined(‘DISABLE_WP_CRON’) or define(‘DISABLE_WP_CRON’, true); WP-CLI And assuming you have your config.yml setup correctly, you can ommit the –path flag when calling cron run. wp cron event run –due-now [<hook>…] One or more hooks to run. [–due-now] Run all hooks due right now. [–all] Run all hooks. To run … Read more

Cannot Flush Permalinks with WP-CLI

I solved the problem by adding wp rewrite flush –hard command and setting mod rewirte in the global wp-cli configuration file: wp rewrite structure ‘/%postname%/’ wp rewrite flush –hard config.yml apache_modules: – mod_rewrite In this way, the .htaccess file gets regenerated. According to the official docs, this is needed in order to flush the permalinks. … Read more