A cache is a component that transparently stores data so that future requests for that data can be served faster. The data that is stored within a cache might be values that have been computed earlier or duplicates of original values that are stored elsewhere.

learn more… | top users | synonyms

59
votes
13answers
5k views

Steps to Optimize WordPress in Regard to Server Load?

Besides installing W3 Total Cache or another caching plugin what steps can I take to make sure that my theme and site run as fast as possible.
21
votes
2answers
5k views

How well does WordPress scale?

With the new WordPress and it's new features, it seems like WordPress is capable of much more than a simple blog engine. But how well does WordPress scale being used by say 10k -> 100k users per day? ...
21
votes
2answers
4k views

What are the best practices for using a caching plugin on a shared host?

I've launched quite a big site the other day and I'd like to incorporate a caching plugin. The setup is single-site with some Buddypress features mixed in (for user registration, maps with gpress, ...
18
votes
7answers
22k views

How do you avoid caching during development?

Is there a simple way do prevent all caching when testing the appearance of changes to the site? I use WP Super Cache. I can delete its cache using the option provided, delete the cache for my ...
15
votes
6answers
13k views

W3 total cache - cache refresh programmatically [closed]

I am building a Digg like website in WordPress. After installing W3 Total Cache, I noticed certain elements such as number of votes (and voters ids) per post are cached even though they shouldn't be ...
11
votes
3answers
30k views

Versioning @import of parent theme's style.css

Context I built a child theme based on Twenty Thirteen which works quite well. After updating the parent theme to version 1.3, I noticed strange behavior with the styling which was caused by a cached ...
11
votes
2answers
3k views

Best way to show Dynamic Content on a Cached Wordpress Site?

I really want to use one of the Cache plugins so that I can serve up more Static pages on my WordPress theme/site. This is obviously the best performance upgrade you can do for a WordPress ...
10
votes
3answers
6k views

What is the best caching option for WordPress multi-site on non-shared hosting?

What caching plugin configuration do you recommend and why under the following assumptions: full control of the server configuration running WordPress in multi-site/multi-domain mode most domains ...
10
votes
4answers
3k views

Optimize apache for WP use

Greetings, I have a WP site with over than 150k pageviews /day. It's running on a Intel Core i5 CPU 760 @ 2.80GHz, with Centos and 4 GB of RAM. The problem is WP consumes too much RAM and after a ...
8
votes
2answers
403 views

Limit cache size from W3 Total Cache [closed]

Is it possible to define a limit for how much space W3 Total Cache is allowed to use?
7
votes
2answers
141 views

Caching and Versioning for rtl.css

I am using filemtime() to add a version number for different .css and .js files in a custom WordPress theme. I used the accepted answer described here as a guideline; however, I use the ...
7
votes
2answers
1k views

Pros and Cons for high “expire time” on wp-super-cache or w3-total-cache? [closed]

In the wp-super-cache page, there is the following sentence, which I do not understand:: Checking for and deleting expired files is expensive, but it’s expensive leaving them there too. On a ...
6
votes
2answers
994 views

Configuring WordPress for Amazon CloudFront Caching?

Amazon CloudFront is a content distribution network (CDN) that can help you survive a huge amount of load in a short amount of time. What's the easiest way to configure WordPress to host its files ...
6
votes
2answers
573 views

Multiple WordPress sites eat up alot of RAM

I have a VPS with 30 WordPress sites. I am running nginx & APC and notice it eats up my RAM up to 1GB and it increases each time I add another site. I notice APC is the one that's causing the ...
5
votes
2answers
117 views

What exactly is an advanced object cache?

I'm reading this article about fragment caching. It seems self explanatory except for this line: based on the assumption that you have an advanced object cache available. What exactly is an ...
5
votes
1answer
240 views

Should I use Transients with W3 Total Cache APC Caching? [closed]

Should I use Transients in my queries like this? <?php if ( ! $my_paged = absint( get_query_var( 'paged' ) ) ) $my_paged = 1; if ( ! $my_query = get_transient( "567recent_$my_paged" ) ) { ...
5
votes
1answer
177 views

Will I see a performance hit if I use native API calls like get_the_title() instead of $post->post_title?

Let's say I've already got the $post object through some earlier process of looping through an array of IDs and using get_post() on each one of them, storing the resulting object in some array. Later ...
5
votes
3answers
685 views

Trouble with Transient API when W3TC is activated [closed]

I'm using W3 Total Cache 0.9.2.11 on Wordpress 3.5.2. I've got a problem with transient API and w3tc's object cache setting. When I activate 'object cache' with memcached (other settings are ...
5
votes
1answer
1k views

Nginx + WordPress + HHVM: Why isn't Batcache working? Would Varnish help even more?

I've heard great things about HHVM, so I've setup a copy of WordPress blog (on another domain) with Nginx (with the Pagespeed module) and HHVM. Right now the benefits are obvious: on the same config, ...
4
votes
4answers
623 views

How can I improve site/page performance of WordPress websites?

To improve site/page performance, I added the following code to accept headers: <php flush(); ?> It works, but perhaps not as well as it could. Any advice? I also tried to leverage browser ...
4
votes
2answers
3k views

Forcing reload of editor-style.css

Is there a method to force the refresh of editor-style.css, when I change manually the stylesheet for the TinyMCE editor? Modification doesn't show immediately but they will be cached in the admin ...
4
votes
1answer
736 views

how to force caching of wordpress admin

Because of using slow connection these days, I would like to force WordPress's Admin section to be cached in browser (FF,IE) so that it it takes less time to load admin pages (because in fact, most of ...
4
votes
1answer
557 views

How to use cache with simplepie

According to the docs, if you want to cache results for a fetch of RSS feeds with simplepie, you do this: add_filter( 'wp_feed_cache_transient_lifetime' , 'return_7200' ); $feed = fetch_feed( ...
4
votes
1answer
3k views

Wordpress Browser Cache with W3-Total-Cache doesn't show new posts [closed]

I'm running the latest version of both Wordpress (3.5.1) and the always popular W3 Total Cache (0.9.2.8), but I'm having issues with the browser cache. Basically I can't figure out the settings to ...
4
votes
1answer
971 views

AJAX vs Fragment Caching for W3 Total Cache [closed]

I'm running a WP site with WooCommerce and I want to do some caching. I'm going to exclude the pages such as the cart/checkout for obvious reasons however there are a couple of the things on the site ...
4
votes
1answer
1k views

Proper hook for W3TC defines, or dynamically disable w3 total cache [closed]

I have a site that uses a shopping cart plugin (Shopp), a plugin I wrote, and W3 Total Cache. In my plugin, I'd like to make sure that W3 Total Cache does not serve any cached pages if the user has ...
3
votes
2answers
283 views

How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]

Or to make it easier: you just want to disable the caching in order to see your changes in realtime. Any solution that would allow you to disable caching based on IP, logged user or cookie will be ...
3
votes
6answers
536 views

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

I notice that many Wordpress tips websites recommend using wp totalchache and similar plugins. I tried it on one site that gets a relatively small amount of traffic, and hardly notice a difference in ...
3
votes
5answers
853 views

Best WP cache plugin for large site [closed]

I'm looking for WP cache plugin which is able to handle large number of pages. approx. 1 mil. I'm considering W3 total cache , WP super cache and few more , unfortunately I don't know which one is the ...
3
votes
3answers
422 views

Stylesheet switching and caching

I'm implementing a site that allows users to switch stylesheets (to show a high contrast version for people with vision impairments). The switcher essentially just changes the <link>ref to ...
3
votes
3answers
319 views

Extremely slow Wordpress website with 6000 posts

I have a website with 6000 posts and it is extremely slow. Sometimes I get this error in my browser: Service Temporarily Unavailable The server is temporarily unable to service your request due to ...
3
votes
3answers
2k views

Does a query executed through wpdb class get cached?

I am not sure how WordPress cache the queries. I had the impression that whenever I execute a query through wpdb class, it gets cached. For example, on codex under Select a Row and Select a Var, it ...
3
votes
1answer
105 views

Caching: Force fresh content for logged-in users (potentially by adding a query variable to the URL)

If a logged-out user visits a page, and then revisit it when logged-in, it will show the cached version. There's a closed question similar to this with an answer that suggests to set Cache Control to ...
3
votes
1answer
624 views

How can I reduce the number of database query calls for this custom homepage?

I am working on the design of a blog with the below(just a sample) category hierarchy. PARENT | ...
3
votes
1answer
2k views

Exclude certain block from caching using Fragment Caching - doesn't work [closed]

I have a one form, and I'm inserting it on page footer from a function file. I need to display a random form to each visitors and thus have a function developed to support this. However, with caching ...
3
votes
1answer
2k views

Varnish + W3 Total Page Cache [closed]

I currently have varnish setup on my server. I'm also using the W3 Total Cache plugin to speed up the site through a CDN. Question: Is there any point in using varnish if the pages are being cached ...
3
votes
2answers
320 views

Is it possible to disable caching of an option when using w3 total cache?

a plugin i'm working on has a conflict with w3 total cache. To be more specific, in my code i have static function get_instance() { if( self::$_instance === NULL ) { // get the settings ...
3
votes
2answers
233 views

Are there any server requirements for WordPress transients to work properly?

Background Info I sell WordPress themes where I include a Twitter widget. In the widget I use a WordPress transient that refreshes every 3 hours to cache the Tweets. I've got thousands of people ...
3
votes
1answer
2k views

Writing a cache manifest file for a WordPress blog (app cache, offline web applications)

I'm wondering if anyone has implemented Offline Web Applications from HTML5 in a WordPress blog? When you write a manifest file, all files must be accounted for, thought you can specify the wildcard ...
3
votes
1answer
105 views

W3 Total Cache plugin integration

I am working on a plugin (widget) that is using some transients that are updated from time to time. That said, when these transients are updated, I think I will need to flush the cache to display the ...
3
votes
1answer
197 views

Can someone explain Wordpress caching, and what's the best in my scenario?

I'm creating a website that has two basic user groups: Subscribers and Editors. Bot can create posts via a custom form using wp_insert_post(), but Editors are allowed to mark a post as private, ...
2
votes
6answers
922 views

WP script versioning breaks cross-site caching?

I am loading JQuery from the google CDN using the following code: wp_deregister_script('jquery'); wp_register_script( 'jquery', // handle - WP uses this name to refer to script ...
2
votes
2answers
3k views

Clear cache when a post is submitted [closed]

I have a question. How can I clear the cache when a post is submitted ? Actually, I need to clear two speficied pages which display these articles ? By default, I have noticed the index.php is ...
2
votes
3answers
2k views

Settings to get the most out of W3 Total Cache

I'm running a dedicated server which hosts one website - our WordPress install. Currently we're getting around 400,000 pageviews per month and that will likely rise quickly over the coming month - ...
2
votes
2answers
6k views

How do I force Wordpress to show most recent version of images in the media library?

My workflow is sometimes the following: Delete many images from the media library at once (named for example, 01.jpg, 02.jpg, 03.jpg...). Re-upload a series of images with the same file names ...
2
votes
2answers
2k views

How wp_cache is supposed to work, and does it help with performance?

I was coding my recent comments widget, and using $wpdb->get_results and I wanted t use cache so it doesn't perform the query every time the page loads, so I used: $comments = ...
2
votes
1answer
406 views

Creating your own widgets: using cache?

I'm in the process of making my own widget but I don't like it to fully generate the content each time since the process is quite lenghty. I can easily create my own caching mechanism but I'm ...
2
votes
1answer
240 views

Should the page cache be refreshed often? [closed]

In the w3 total cache there is the option to set the time until the cache is flushed (and thus, recreated on the next time a visitor comes by). My question is, assuming I've got a lot of content on ...
2
votes
3answers
1k views

WP Super Cache separate cache for mobile

I'm using the WP Super Cache plugin and inside my theme I have code that executes differently if the site is viewed on a mobile device (iOS, Android) than a desktop browser. How do make WP Super ...
2
votes
2answers
150 views

Plugin a specific cache functionality?

I have written a plugin that puts a (google) favicon in front of each link in my blog. Really simple. Just uses a simple preg_replace_callback on hrefs: $changed_html_reference = ...