• 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 » XCache and W3 Total Cache WordPress on High End Setup

By Abhishek Ghosh September 4, 2014 1:19 am Updated on September 4, 2014

XCache and W3 Total Cache WordPress on High End Setup

Advertisement

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. Frederick Townes is somewhat known person to us, it is obvious that we might criticize a plugin or their business model, but actually he is a good person. Many years ago, it was Frederick Townes who mentioned us on W3TC’s other notes (2012) :

 

Vim
1
http://wordpress.org/plugins/w3-total-cache/other_notes/

 

Definitely there are two plugins for WordPress Caching – W3 Total Cache and WP Super Cache. We also criticize Rackspace despite their excellent support. Piwik became bad because less people criticized – things are written with guide! So, Nginx – PHP5-FPM setup with 2 GB PVHVM Server as web server and 1 GB PVHVM server as MySQL Server and all possible stuffs from Rackspace. The linked Piwik guide will give you link to the other needed guides. We do not change any default files’ name. It is high end for WordPress considering the average CPU load and other metrics. Obviously it is possible to use Rackspace OnMetal with 128 GB RAM as Web Server and with 512 GB RAM as Application Server – around $2000 USD per month plus cost of bandwidth. But if you check traffic : processor core ratio, we are using high end server.

XCache and W3 Total Cache WordPress on High End Setup

 

Why XCache and W3 Total Cache WordPress on High End Setup Needs Consideration

 

For WordPress, you should not use XCache as an alternative of Disk Cache Enhanced for Page Caching. XCache is blazing fast, but even with 128 GB + 512 GB RAM combo offer, there is enough chance of hit and miss. XCache is fast but it sucks memory and takes huge time to build the Cache. So, the place of XCache in any high end setup is for object Caching. Otherwise your Time To First Byte (TTFB) will be very poor (if you use XCache for Page Cache) :

Advertisement

---

Vim
1
http://www.webpagetest.org/result/140903_HF_176B/1/details/

The website in real loaded quite faster, but on computerized tests; actually it becomes bad. Somewhat good after Page Cache set to Disk Enhanced :

Vim
1
http://www.webpagetest.org/result/140903_3P_17FH/1/details/

Keep in mind – this is a full HTTPS setup. Practically if there is a HTML page, the server will less likely to die if 200 opens one particular webpage at the same time. Unfortunately, this theory fails as during the building of cache after post publication, the rush comes on the new post. Still, it (Disk Cache Enhanced for Page Cache) is better option than remaining kind of naked. As our disk I/O is very good, read-write cycle technically becomes better with Disk Cache Enhanced. A GET request => Cache Present => Served. PHP5-FPM almost has no work. But, if you keep only XCache in front, all traffic will go through that fast cgi block of Nginx server config file. If there is no Cache, its quite difficult to logically define unlike Disk Cache Enhanced (on Nginx setup). It is not abnormal to get this kind of graph :

Vim
1
http://tools.pingdom.com/fpt/#!/cjL4Zo/https://thecustomizewindows.com/2014/09/delete-mysql-database-from-command-line/

Only Disk instead of XCache for Object Caching is possibly a bad idea as the Hard Disk will actually be seek more and more. So the settings becoming :

Vim
1
2
3
4
5
Page == Disk Enhanced
Minify == Disk
Database == No Cache (InnoDB Engine)
Object == XCache
CDN == Akamai

The XCache thing requires further tweak.

 

XCache and W3 Total Cache WordPress : Setup

 

In Nginx Installation guide and later tweaks (search our web site with the thing you want), we actually installed XCache. If you run this command :

Vim
1
php5 -v

You will get an output like this :

Vim
1
2
3
4
5
6
7
8
PHP 5.5.9-1ubuntu4.3 (cli) (built: Jul  7 2014 16:36:58)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
    with XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOo
    with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
    with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo

With Ubuntu, you need not to fight much. You only need to locate the settings file :

Vim
1
locate xcache.ini

You’ll get an output like this :

Vim
1
2
3
4
5
/etc/php5/cli/conf.d/20-xcache.ini
/etc/php5/fpm/conf.d/20-xcache.ini
/etc/php5/mods-available/xcache.ini
/usr/share/doc/php5-xcache/examples/xcache.ini
../../../../wp-content/plugins/w3-total-cache/ini/xcache.ini

The last one is the file written by Frederick Townes for W3TC, only two must be commented out in this fashion :

Vim
1
2
3
;xcache.admin.user = "mOo"
;xcache.admin.pass= "hash-password-here"
xcache.admin.enable_auth = Off

The path of W3TC’s specific file by default Nginx setup is :

Vim
1
/usr/share/nginx/html/wp-content/plugins/w3-total-cache/lib/W3/Cache/Xcache.php

With increasing load actually a better result should be expected :

Vim
1
http://tools.pingdom.com/fpt/#!/I0m1r/https://thecustomizewindows.com/2014/09/hardware-assisted-virtualization/

With a scalable infrastructure, good hardware, SSD, practically XCache is not required. There is no XCache :

Vim
1
http://www.webpagetest.org/result/140904_1J_10B/1/details/

We need X factors for a spinning hard disk, no CDN, no scalable InnoDB engine. Rest required is manual coding to decrease the number of requests, serving CSS without being a blocking element, setting the expire headers properly.

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 XCache and W3 Total Cache WordPress on High End Setup

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

  • Install WordPress on HP Cloud (Ubuntu, Nginx)

    Here is step by step guide to install WordPress on HP Cloud with one Database Server and one Web server on Ubuntu and Nginx PHP5-FPM platform.

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

  • How to Add Auto Anchor to WordPress HeadingsJune 7, 2023
  • Self-Hosted Fonts vs. Cloud-Hosted FontsJune 7, 2023
  • How to Restrict Certain Posts or Categories In WordPress by CountryJune 6, 2023
  • Influence of Digitization on Procurement : Part 1June 6, 2023
  • How We Can Show Apple Icon, Windows Logo on Website TextJune 5, 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

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