-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-site settings #32
Comments
I've been working on a bunch of changes related to better multi-site support in this fork: https://github.com/HumanitiesComputing/wp-varnish This includes:
I've been running this in a production setup for a few weeks now and it seems to work. The only known issues are that I am not particularly familiar with the WordPress localization setup and I am not sure how to confirm that I didn't break that. I'd appreciate any feedback & testing from other multi-site users and would definitely like to see these features merged back into the main project if folks find them useful. So far I have been focusing on using the settings file for global multisite stuff rather than using a network admin page. This makes version controlling the config and re-deploying stuff a lot easier. I haven't looked to closely into what it takes to make a network admin page and whether or not the plugin can still have site-local admin pages at the same time. |
I installed it on a dev system and some of the changes do look nice. I haven't had a chance to test out some of the new features, but so far it is working after some quick tests. I put the changes above back in so I could lock down the site admin pages. If you are developing for multi-site a network admin page with an option to expose purging to users might be useful. You'd probably have to code for those not running multi-site as well. Your sample wordpress.vcl file is nicely written, but not as aggressive as I was getting a very low stat rate when I tested it when I ran varnishstat and apachebench. I use the following config pieced together from several sources in conjunction with domain mapping.. I include it if it helps..
|
btw.. thanks for all the hard work. I'll keep testing and hope to go production next week. Any chance of a consolidated release back to WordPress.org? |
I have that on my todo-list, but I don't have much time for this project as I wish. My plan is to set up automatic synchronization from GitHub to the wordpress.org subversion repository. I can provide credentials if anyone is interested in helping out. |
I found this repository looking for the the most recent wp-varnish code. I really like some of the updates and in fact started using the code on our site.
I use the following config in wp-config.php
global $varnish_servers, $varnish_version;
$varnish_servers = array('127.0.0.1:80');
$varnish_version = "3";
define('VARNISH_HIDE_ADMINMENU',1);
I don't want any of the options to be viewable by users on the network. I guess this is a feature request, and would like to see these settings in network admin pages, rather than on the site admin pages. Another plugin I use for domain mapping does this very well and could be an example. Either way I like having the options above.
The text was updated successfully, but these errors were encountered: