[wp-hackers] managing several MU installations
gigalinux at gmail.com
Sun Dec 13 20:30:51 UTC 2009
-- Gesendet meinem Palm (Device)
Vinicius Massuchetto schrieb:
On Sun, Dec 13, 2009 at 4:19 PM, Nuno Morgadinho
<nuno.morgadinho at gmail.com> wrote:
> On Sun, Dec 13, 2009 at 5:29 PM, Vinicius Massuchetto
> <viniciusandre at gmail.com> wrote:
>> I wonder why would you need several wpmu installations.
>> Are them on the same server and installed for the same purpose?
> Nop. They are on different IP addresses. Imagine an organization where
> each MU is for a different branch per country, but the configuration
> is managed centrally by one entity.
>> I believe that you can schedule SQL processes to sync data between
>> options tables in your case, once I think it would be inconsistent to
>> make multiple wpmu installations to use the same options table
>> throught pure PHP code.
> I want something more robust. Change in one place, affect everywhere,
> kind of thing.
Register a hook to be ran every time any option of the blog is
changed. This hook must run a MySQL query that will update other
tables on other wpmu installations.
I would preffer to separate the script in one external file to be
fetched (e.g. with curl) by this hook, so you don't need to keep
updating passwords and IPs on every host.
An independent cron job would be more appropriate since this operation
may take a little time to be completed, but it's an expensive task
Update just the desired field would be much better, and I'm not sure
how to do that, or even if that's possible with current Wordpress
wp-hackers mailing list
wp-hackers at lists.automattic.com
More information about the wp-hackers