Questions tagged [cache]

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.

Filter by
Sorted by
Tagged with
84
votes
14answers
7k 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.
29
votes
3answers
94k 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 ...
27
votes
2answers
6k views

Explanation of update_post_(meta/term)_cache

I was reading over some best practices from 10up and they mention setting these two flags to false in a WP_Query ( depending on what you're querying ): 'update_post_meta_cache' => false: useful ...
23
votes
6answers
33k 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 (...
23
votes
4answers
20k views

How does object caching work?

I'm looking for a definitive answer here. When object caching is enabled, where do options and transients end up living? By default, both are stored in the database. But I've heard some references ...
5
votes
1answer
3k views

How can I clear oEmbed caches for YouTube on posts as they are loaded

I have a site with tons of posts hundreds/thousands of which have YouTube videos embedded. Most use the default [embed]youtube_url[embed] format and the actual embed code is stored in the oEmbed ...
35
votes
3answers
9k 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? ...
13
votes
4answers
9k 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 are ...
8
votes
2answers
4k views

Cache remote (HTTP) request with Transients API

I am trying to use get_transient() method in my Wordpress, I have read the document and seems like I am doing what has been described in the docs. I need to show weather in my website and I am using ...
31
votes
3answers
6k 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, ...
32
votes
9answers
62k 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 ...
2
votes
3answers
841 views

How to purge all transient caches?

Is there an easy way to delete all transient caches? A plugin maybe? Or like in drupal "drush cc all"?
8
votes
4answers
2k views

Is it possible to completely stop WP_Query retrieving posts?

I'm trying to use WP Redis to cache entire $wp_query object with key is $query_vars_hash. This is how $wp_query was added to $wp_object_cache: add_action('wp', function($wp) { if ( is_admin() ) ...
6
votes
2answers
1k 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 (...
5
votes
1answer
7k 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 ...
1
vote
3answers
1k views

Transients vs CRON +Custom Fields: Caching Data Per Post

Wanted some opinions on a solution I'm trying to come up with: I have a fan/enthusiast plugin I'm working on for fans of TV shows. One of the custom post types attached to the plugin is a release ...
3
votes
3answers
1k views

Setting Last Modified HTTP Header on static Home Page

In response to the question asked here I find myself and this other user needing a solution to set a last modified header that contains the date and time of the most reicent post. Since we both in ...
3
votes
3answers
550 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 ...
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
7k views

How to exclude a specific template from being cached by a CDN [closed]

I’m using a specific template on my self-hosted WordPress blog to display a page with randomized posts. Recently, I configured W3 Total Cache to make use of a content delivery network (CDN). When ...
2
votes
1answer
16k views

How to force content refresh of a page that has been loaded previously by the user? [closed]

How can any page on the site be forced to refresh or load content by ignoring anything in cache, everytime a visitor visits the page for the second time? The website uses twentyeleven & w3tc (...
1
vote
1answer
16k views

How to clear cache without a plugin [closed]

How can I clear all my websites cache without using a plugin? Is this possible? If so then how can I do it? Thanks
1
vote
2answers
9k views

W3 Total Cache doesn't detect memcached [closed]

I have a wordpress installation (latest version) running on a debian server with memcached and php5-memcached installed (memcache appears on phpinfo()), but W3 Total Cache doesn't seem to recognize it,...
0
votes
1answer
190 views

Under heavy cache conditions, updating the parent theme don't reflect changes with child theme enabled

I use W3 Total Cache, Cloudflare (and CloudFront for media files). I use a Child Theme to customize specifically for my site while maintaining the core theme with the parent theme. Whenever I update ...
3
votes
1answer
1k views

wp_cache_set() or wp_cache_add()

That's the question! There's not much explanation on wp_cache_set() an even less for wp_cache_add(). What should I use in which circumstances?
3
votes
1answer
138 views

Is priming a Transient Cache possible?

I'm currently using Wordpress Transient Caching when querying images I've uploaded and tagged. Using Transient Caching has really sped up these queries once they are cached, but unfortunately, once ...
2
votes
2answers
1k views

Transient not working for custom loops

I'm working at a WordPress theme. Since I need to display featured posts, related posts, some widgets with recent posts and so on, I need to use multiple custom loops. Because of this, the number of ...
2
votes
1answer
6k views

Can I ignore caching of a plugin in W3 Total Cache? [closed]

I currently have a plugin that lets me display a random post in a widget. The problem is that if I activate w3 total cache it will only display that post as long as the cache hasn't been cleared. Is ...
2
votes
1answer
404 views

Duplicate Queries

While using the query monitor plugin I could notice I am making a database query 4 times. I am using OPP. So I have a method that gets me a list of posts by querying the database. I have to do this 4 ...
1
vote
2answers
279 views

Help Pinpointing Source of Caching Issue

When viewing the home page of my site (zilredloh.com), sometimes I do not see the latest posts. A new post will have been published, but the main index page doesn't reflect this. Refreshing the ...
1
vote
1answer
840 views

get_post_meta causes database queries

I want to know why my site's search results are slow. I've used the excellent Debug Bar plugin, and found out that each search result causes 5 DB queries, of which 3 are SELECT meta_key (see below for ...
1
vote
1answer
1k views

pass-protected pages and posts not protected after enter them 1 time

i use wordpress 3.9.2 and i read a lot of article and Q about clear cookies but some of them is too old ( for wp 3.4 and wp-pass with different code) or not solve my problem i have some password ...
0
votes
1answer
80 views

Keeping Objects in Memory

I have built a WordPress plugin using classes. Each project class is created for a specific user. I want to do three things: Keep the project object in memory for that user between his or her ...
-3
votes
2answers
144 views

Want to enforce the visitor to load the new version of your stylesheets and scripts [closed]

Want to enforce the visitor to load the new version of your stylesheets and scripts