• 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
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

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud

    Here is a Step by Step Guide on Setting Up WordPress Multisite on Nginx on Ubuntu 14.04 on HP Cloud with All Commands and the Configuration.

  • XCache Admin Page on Nginx-PHP5-FPM (Ubuntu, HP Cloud)

    Here is How to Setup a XCache Admin Page on Nginx-PHP5-FPM on Ubuntu Instance Running on HP Cloud. It Gives a Clear Graphical Idea of Caching.

  • XCache and W3 Total Cache WordPress on High End Setup

    Here with this website we are showing you settings with XCache, W3 Total Cache WordPress on a somewhat high end setup on Rackspace Cloud Server.

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

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
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