• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » W3 Total Cache Settings for XCache & Memcache

By Abhishek Ghosh May 22, 2015 10:55 am Updated on May 22, 2015

W3 Total Cache Settings for XCache & Memcache

Advertisement

Here is W3 Total Cache Settings for XCache & Memcache, the settings is optimized for Ubuntu Instances running on HP Cloud with Nginx PHP5-FPM. We are using optimized InnoDB. It is frequently asked, what should be the optimal settings for W3 Total Cache, when both XCache and Memcached are installed. We talked about XCache admin page and setup for WordPress. As in our case, we have no clients, we do not mind for the time that will be taken for the cache to be build. If you followed our guides to setup your infrastructure, memcache will be missing. It is easy to setup memcache :

Vim
1
2
3
apt-get install memcached php5-memcache
php5-fpm -t
service php5-fpm restart

We need to configure two files – /etc/memcached.conf and /etc/php5/mods-available/memcache.ini. In memcached.conf file, you need to change the value of -m 64 to few hundred times higher. memcache.ini should have these values :

Vim
1
2
session.save_handler = memcache
session.save_path = "tcp://localhost:11211"

In case, you want to use a separate instance (recommended) for memcache, then localhost should be changed to subnet mask. Zend Opcache is rightly configure. Apart from these, you can use RAM for mounting wp-content.

Advertisement

---

Restart memcache after changing the settings by running :

Vim
1
service memcached restart

 

W3 Total Cache Settings for XCache & Memcache

 

You will never face issue with XCache with our settings. We are describing what we have seen and feel as the best settings. Actually XCache after configuration, needs no further work from Dashboard. You will see from XCache Admin page – XCache is being used by W3 Total Cache.

W3 Total Cache Settings for XCache & Memcache

See the screenshot in full size.

Frankly, on webpagetest.org, if a well designed webpage loads with 4 seconds as First View, it is satisfactory. Give importance to Speed Index.

You can use memcache as Object Cache. In that case, you have to define the port from the Object Cache’s settings page of W3TC, URL is like this :

Vim
1
/wp-admin/admin.php?page=w3tc_objectcache

for the above reason, we mentioned that session.save_path = "tcp://localhost:11211"part. You will use localhost:11211 in this case. There is a test button. It will pass. Then enable from General Settings. We usually keep the settings of W3TC in this way :

Page cache method > Disk Enhanced
Minify cache method > Disk
Database cache method > Disk
Object cache method > Memcached

The above settings give us a consistent result.

Page cache method > Disk Enhanced
Minify cache method > Disk
Database cache method > Disk
Object cache method > XCache

The above settings give us an inconsistent result on load but on lower load pages load faster. It has more to do with HP Cloud specific things.

Page cache method > Disk Enhanced
Minify cache method > Disk
Database cache method > XCache
Object cache method > XCache

The above settings give us an inconsistent result.

Page cache method > Disk Enhanced
Minify cache method > Disk
Database cache method > Disk
Object cache method > Disk

The above settings give us a consistent result comparable to using memcache when load is less.

You can test database caching with Memcached. Actually, when we are using Disk, then also caching is happening. With Nginx Microcache with right www.conf settings on good host (including HP Cloud, Rackspace, IBM excluding Amazon), it does not matter much if the front end is leveraged by Akamai. With Google AdSense Ads, test results can become biased. Amazon’s instances might fail on load. It possibly happens due to bad quality of hardware on Amazon. Definitely you have fastcgi_cache_use_stale in your nginx config file :

Vim
1
2
3
4
5
...
fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header http_500;
fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
...

Caching on Nginx is unique. WordPress as an App is kid in front of the progress of server side softwares. Google AdSense, Analytics etc. will tell you that your website is running faster.

Tagged With w3 total cache , configure memcached for w3 total cache , ubuntu w3tc cache , w3 total cache settings and memcache

This Article Has Been Shared 599 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to W3 Total Cache Settings for XCache & Memcache

  • Responsive Web Design, Grid System and Mobile Website

    Responsive Web Design, Grid System and Mobile Website are used for making a website easily viewable on any mobile devices including Tablets. Here is a guide.

  • Podcast and WordPress : Tips

    Podcast and WordPress can make the older posts more lively again. A small introduction Podcast can increase the conversion. Here is a detailed guide.

  • Post Specific Widget with Semantic Markup for WordPress

    Post specific widget with Semantic Markup for WordPress is a kind of template Plugin for more flexibility. You can create infobox like Wikipedia.

  • RESTful API for WordPress to Enable Public HTTP GET Request for Posts

    RESTful API for WordPress Can Enable Many Features to a Website Like We Can Fetch Data for Facebook Page from Widget via HTTP GET Request.

  • InnoDB Table Optimization for WordPress

    InnoDB Table Optimization for WordPress is followup for our previous guide to use InnoDB Engine. Most plugins will not support optimization.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Zebronics Pixaplay 16 : Entry Level Movie Projector Review February 2, 2023
  • What is Voice User Interface (VUI) January 31, 2023
  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023

About This Article

Cite this article as: Abhishek Ghosh, "W3 Total Cache Settings for XCache & Memcache," in The Customize Windows, May 22, 2015, February 3, 2023, https://thecustomizewindows.com/2015/05/w3-total-cache-settings-for-xcache-memcache/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT