Hello,
One other thing, I also use a memcache plugin but whether I have that enabled or not does not seem to make a difference. I actually have two sites, one it works on, the other it does not and they should be the same.
PHP cache may be a different but unfortunately I cannot remove that to test it out.
site is ‘www.virtualizationpractice.com’
Edward
I thought you had solved your issue, I’m confuses now 🙂
I thought I did as well, I Have a development site and a production site. There are no differences in caching mechanisms between the sites. Both use Xcache, DB Cache Reloaded, etc. The Dev Site works flawlessly. But the production site does not.
Turning on a JavaScript debugger, I found the cause of the problem. :} The wp-config.php file is being parsed but not executed, that will cause the problem in my setup as I go to different databases depending on the incoming URL…. So in essence it has different DB_ var names. On the dev server there is only 1 item…
This was an older way to do multi-site setup and we have not changed it yet…. (wp_oneinstall plugin and it still works today). The MU will not work for us in its current form.
So we need a way to set the DB_ vars appropriately… the simplest way seems to just include wp-config.php instead of trying to parse it which could make this MU acceptable.
This is what I did on my dev environment and it seems to work.
Best regards,
Edward
Another solution is to rearrange my multi-wordpress configuration so that the DB variables that I want to use for this site show up last.
I suggest you include wp-config.php so that the proper vars are in place. There is a slight overhead but nothing huge.
Best regards,
Edward
Hi Edward,
Now this explains everything 🙂 Unfirtunately it’s not true that loading (and not parsing) wp-config only adds a little overhead. Why load the entire WP engine (about 40 megs of RAM!) when I don’t use any of it in that file? My plugin is called “slim” stat for a reason, hehe…
Unfortunately I don’t see an easy way of solving your issue, other than telling you to manually change the source code of my plugin to include wp-config instead of parsing it. Also because it would be to accommodate the needs of a single user who is doing something “non standard”.
If you come up with a better idea, feel free to share it on this forum!
Camu