Convert a --w3tc site to --wpfc


#1

Hello,

If I have created a w3tc site like this:

ee site create example.com --w3tc

Is there any way to convert this site to a wpfc site without deleting it and starting over? (Since I’m running a production site in w3tc mode I’d like to avoid the headache of starting over if at all possible when converting to wpfc mode.)

thanks!
LO


#2

@webmaster1
can you provide us the output for these commands.

  
ee version  
 ee site show yoursitename  


#3

Hi Harshad,

  1. EasyEngine (ee) version: 2.0.1 (I recently upgraded, if you needed to know. I think my original ee install was two versions back.)

  2. https://gist.github.com/lolux/57970a7266e3896d7f4a# (replaced my domain with example.com)

Am I correct to guess that I can accomplish the conversion by editing the nginx virtual host config to include the params for fast cache? E.g., if I create a new test site using --wpfc, then use the virtual host config as a template to copy-n-paste the fast-cache-specific configs into my production site, would that do the trick?

Thanks for your help.


#4

Hi webmaster1,
Your guess is correct, you can accomplish the conversion by editing the nginx virtual host config.
but use this way.

  1. change # WPSINGLE W3 TOTAL CACHE NGINX CONFIGURATION to # WPSINGLE FAST CGI NGINX CONFIGURATION
  2. add this include common/wpfc.conf; line below index index.php index.htm index.html;

#5

W3 Total Cache plugin generates some files to wp-content:
w3-total-cache-config.php
db.php
advanced-cache.php

Do you think those should be deleted as well? If I recall correctly the configuration entry
define(‘WP_CACHE’, false);
in wp-config.php causes advance-cache.php to be executed. See http://codex.wordpress.org/Editing_wp-config.php#Cache


#6

@Ossi_Mantylahti Hi, If your w3tc plugin is deactivated then you can delete these files. or if its not then it will show error something like this

W3 Total Cache: Default settings are in use. The configuration file could not be read or doesn't exist.

Dont worry, these files will be generated when you click save the settings button next to error.

above will be set to true until w3tc plugin is activated.


#7

Hello @Ossi_Mantylahti,

It’s been a long time, and we haven’t heard from you. It looks like your issue is resolved.

I am closing this support topic for now. Feel free to create a new support topic if you have any queries further. :slight_smile:


#8