Is there a quick way to change --basic to --wpfc


#1

Hi guys,

I have to say, I LOVE EE! So much easier to set sites up.

I mistakenly set a few sites up with the --basic (regular) on wordpress.
Is there a quick way to change these sites to --wpfc ?


#2

@alanvo

Please provide the following command output

  
ee site show example.com  

So we can provide the actual step to change the caching.


#3

Output:

# WPSINGLE BASIC NGINX CONFIGURATION  

server {  

	server_name example.com www.example.com;  

	access_log   /var/log/nginx/example.com.access.log rt_cache;  
	error_log    /var/log/nginx/example.com.error.log;  

	root /var/www/example.com/htdocs;  
	index index.php index.htm index.html;  

	include common/php.conf;  
	include common/wpcommon.conf;  
	include common/locations.conf;  

}

#4

Change following settings:
OLD Value:

  
# WPSINGLE BASIC NGINX CONFIGURATION  
include common/php.conf;  

New Value:

   
# WPSINGLE FAST CGI NGINX CONFIGURATION  
include common/wpfc.conf;  

So your new configuration looks like: https://github.com/rtCamp/easyengine/blob/master/templates/nginx/wp/wpfc.conf


#5

Also you have to configure and install following two plugins

  1. nginx-helper
  2. w3-total-cache
  
Configure nginx-helper: http://example.com/wp-admin/options-general.php?page=nginx  
Configure W3TC:     http://example.com/wp-admin/admin.php?page=w3tc_general  
Page Cache:         Disable  
Database Cache:     Memcached  
Object Cache:       Memcached  
Browser Cache:      Disable  

#6

Thanks Mitesh. I’ll try that.


#7