Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is Comet Cache the fastest cache plugin available for WordPress? How does it compare to others? #89

Open
3 of 6 tasks
jaswrks opened this issue Oct 2, 2015 · 1 comment

Comments

@jaswrks
Copy link

jaswrks commented Oct 2, 2015


KB Article Creation Checklist
  • Write initial draft for this KB Article; label this issue draft and either questions or tutorials
  • Add required YAML configuration
  • Add Tags for this KB Article to the YAML config (see YAML Keys (Explained))
  • Edit and finalize draft for publishing (remove draft label, add draft-finalized label)
  • Assign Issue to yourself and create Markdown file (remove draft-finalized label, add pending)
  • Project Lead: Review and Publish KB Article (remove pending label, add published label)
Additional TODOs

Additional TODO list items go here.

title: Is Comet Cache the fastest cache plugin available for WordPress? How does it compare to others?
categories: questions
tags: pre-sale-faqs
author: jaswsinc
github-issue: https://github.com/websharks/comet-cache-kb/issues/89

No, Comet Cache is not necessarily the fastest cache plugin available. In fact, if you search the web you will see Comet Cache reviewed in several articles in various ways. Obviously, some of those articles/reviews are more generous to us than others. In any case, you can't dispute the facts. Comet Cache ranks well for speed, but not always the absolute fastest available. Why? Here are some things to keep in mind :-)

One should consider whether speed is the only concern...

It's easy (when comparing caching plugins) to put a focus on speed and speed alone. However, plugin compatibility and overall peace-of-mind with a reliable plugin that also works to speed things up is more valuable in our opinion. While Comet Cache ranks well for speed, we really don't put our primary focus on speed. Caching is the speed, no matter how you cut it that will dramatically speed up your site. What we focus on is being compatible with a wide variety of plugins. So (in code) we take a "do no harm" sort of approach in that regard.

How do crazy-fast cache plugins pull it off?

In many WP cache plugin reviews, one of the main differences between plugins (in terms of speed) is in how they actually serve the cached copy of pages. When you look at some of the fastest cache plugins, they generally rely on two things in order to accomplish a faster speed score.

  • Browser caching; i.e., a client-side cache. This is generally not recommended on any site that has users logging in/out all the time. Allowing a browser to cache the HTML content of your site can result in a visitor seeing a page that was originally cached by their browser whenever they were not logged into the site; as opposed to what they should be seeing when they are in fact logged in. Note that caching "HTML" content generated via PHP (i.e., by WordPress) is different from caching static resources. Static resources should always be cached and/or served from a CDN if possible.
  • The cache hits not touching PHP at all; i.e., several .htaccess tweaks. This increases speed by a lot. However, it also means there is very little (or no) validation of the cache entries and/or inspection of the current user. This reduces the number of configurable options that you have, and it is certainly not recommended for a site that is dynamic; e.g., a membership site or any site that runs things like bbPress or BuddyPress. By serving the cache in a very early phase of PHP (before WordPress loads) we achieve the best of both worlds. Speed and reliability with deep validation of the cache before a decision is made to serve the cached copy; or not.
@raamdev
Copy link
Contributor

raamdev commented Oct 2, 2015

Awesome! Love this. There's such a subtle but important distinction between caching that relies on the web server (e.g., via a .htaccess file) and caching that has the intelligence of PHP behind it. The former is faster, but the latter not only improves compatibility but also allows the caching engine to ensure that visitors see the most recent version of a page and allows the site owner to control all sorts of things that aren't possible when giving up that control to a web server (via mod_rewrite in an .htaccess file); for example, efficient cache expiration time.

One thing I'd love to see in this article is a comparison of caching-related features possible with both methods, so that a site owner can get a better idea why ZenCache prefers the PHP-method.

@raamdev raamdev changed the title Is ZenCache the fastest cache plugin available for WordPress? How does it compare to others? Is Comet Cache the fastest cache plugin available for WordPress? How does it compare to others? Jun 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants