If you have the WP eStore plugin activated you’ll need to edit some code in your WP Super cache files in order to make the plugins work properly together. What i mean by this is you’ll need to add a small block of code to the Super Cache plugin file so your eStore is cacheable and fast like the rest of your site.
You will need to copy this code from the tips & tricks website. A link to this code will appear in your WordPress dashboard after you have installed both WP eStore & WP Super cache or W3 Total Cache.
Here’s the code that needs to be added to the wp-cache-phase1.php file
Caution: Always create full site backup before editing php code.
The same applies for all 3 Tips & Tricks plugins below which integrate perfectly together as they are all created by the same developer:
The reason i like these 3 plugins so much is because they’re all lightweight plugins which work well together. Having spent so much time on the various WordPress forums i see so many ongoing issues with both shopping cart and eCommerce integration as well as problems with plugins conflicting with others. The video tutorials are also excellent.
First step: Navigate to the correct location where the code is to be added.
Login to your hosting accounts cPanel and find File Manager
Click File Manager and locate public-html
Then click through public-html →wp-content→plugins →wp-cache-phase1.php
Once you arrive at wp-cache-phase1.php open the php file by right clicking on it and click on code edit. The WordPress hosts i recommend all offer a built in editor which makes it very easy to add code to any php files when using your hosts cPanel tools.
The other way to add code to a php file would be by using FTP and an external editor like notepad++ but i think File Manager is easier.
Open the “wp-super-cache/wp-cache-phase1.php” file and search for the following line of code:
if ( wp_cache_user_agent_is_rejected() )
Second step: Paste the php code into the correct location
Open the php file and navigate to line 112
Paste the code in Image 1 above this line of code:
Here’s the before and after shots of what it should look like:
Paste the new block of code above the code in the red box
Below is the new block of code which has been pasted above the existing line of code on line 112
Make sure you save the changes before closing File Manager.