W3TC_CONFIG_DATABASE and WP-CLI requests
-
Hello,
I’m facing a strange situation when running cron events, using wp-cli, on a multisite network while having the W3TC settings saved up on the database.
This project requires the settings to be saved up on the database since we have several WordPress servers handling requests without having a shared filesystem (like NFS).
Everything is running smoothly, except the cron jobs. As far as I can see, the blogs.php file is created, and appears to be required by W3TC, to get the correct blog ID for the current request. Since there is no shared FS, only one file is created, making only one server capable of mapping the URL to the correct blog id. This makes all cron requests use the master config, snce the blog_id is always 0.
Shouldn’t the mapping saved on the database when the W3TC_CONFIG_DATABASE constant is true, or in the case of CLI requests, handle the current blog using the –url flag provided by WP-CLI?
Is there a workaround for this?
Thanks in advance.
- The topic ‘W3TC_CONFIG_DATABASE and WP-CLI requests’ is closed to new replies.