Fragment caching increasing database queries

You are using transient API which works storing data on wp_options table by default. That means that additional database queries will be performed to set the transient and to get the transient. With your code the number of queries should be less for non-logged in users in second and subsequent visits when the transient exists … Read more

How to use cache with simplepie

The example your using from the codex adds and removes it (probably not something you want to do), and is not very clear. By default WordPress will cache the feed for 12 hours using wp_feed_cache_transient_lifetime, the actual code WP uses for 12 hours is $lifetime = 43200 If you want to alter the cache time … Read more

wp_cache_set() or wp_cache_add()

According with WP Object API documentation both functions accepts these arguments: $key: the key to indicate the value. $data: the value you want to store. $group: (optional) this is a way of grouping data within the cache. Allows you to use the same key across different groups. $expire: (optional) this defines how many seconds to … Read more

Automatically Refresh WordPress Stylesheet

“Quick” fix: Right Click -> view page source ( ctrl+U ), find .css file you changed, open it in new tab and reload ( you should see change in place you’ve made it ) ONLY in development mode add php function time() in place of version number wp_enqueue_style( $handle, $src, array(), time() , ‘all’ ); … Read more

Does a low traffic WordPress site need a caching plugin and a CDN

Static page cache is trade-off of resources for speed. The larger and more complex site is, the more resources it takes to cache it. Since there is no such thing as unwanted speed, static cache of small sized site is one of the best performance improvements possible. Especially on shared hosting where other tweaking options … Read more

WordPress Browser Cache with W3-Total-Cache doesn’t show new posts [closed]

There are two steps necessary to make sure that the browsers fetch the updated HTML pages (ex: home page). Step 1 Uncheck ‘Set expires header’ at your site’s wp-admin/admin.php?page=w3tc_browsercache#html_xml, for ‘HTML & XML’ files. Whenever a browser sees an Expires header, it (the browser) will fetch the next version of that particular HTML page only … Read more

What exactly is an advanced object cache?

An advanced object cache is a cache mechanism that can store data that persists beyond a single request. A couple of popular object caches for WordPress are APC and Memcached. The WP_Object_Cache class Codex page has a list of links with more info on advanced cache options.