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.
36
questions
85
votes
15
answers
8k
views
Steps to optimize WordPress in regard to server load and website speed?
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
3
answers
97k
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 ...
37
votes
2
answers
10k
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 ...
26
votes
6
answers
39k
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 (...
24
votes
4
answers
21k
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
1
answer
4k
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
3
answers
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
4
answers
11k
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 ...
9
votes
2
answers
6k
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 ...
32
votes
10
answers
69k
views
How do you avoid caching during development?
Is there a simple way to 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 ...
31
votes
3
answers
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, ...
15
votes
1
answer
8k
views
Performance with autoload and the options table
I am playing around with the autoload column of the options table. I didn't find much information about how the autoloaded values are used. I tried a print_r($GLOBALS) and saw that the autoloaded ...
4
votes
3
answers
3k
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
4
answers
3k
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
2
answers
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
1
answer
3k
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?
5
votes
1
answer
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 ...
4
votes
2
answers
10k
views
Any reason why wp_cache_set not to work?
Any reason why wp_cache_set not to work? I have spun my wheels trying to figure out why these are not working. Any suggestions? These functions are supposed to help me cache the results to a key/...
3
votes
3
answers
571
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
1
answer
3k
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 ...
3
votes
3
answers
3k
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
1
answer
166
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
2
answers
2k
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
3
answers
3k
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
2
answers
8k
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
1
answer
17k
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
2
votes
1
answer
19k
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 (...
2
votes
2
answers
10k
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,...
2
votes
2
answers
4k
views
Cloudflare's Rocket Loader + Wordpress -> Ignore scripts?
I'm trying to make Cloudflare's Rocket Loader work on my WP site. Everything works fine except for the WP Visual Editor. I followed the advice here but it doesn't work:
How do I add custom attributes ...
2
votes
1
answer
7k
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 ...
1
vote
3
answers
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 ...
1
vote
2
answers
444
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
1
answer
1k
views
can't see live version of style.css - is it web server caching?
My website is loading style.css?ver=1.0
style.css?ver=1.0 had different content to style.css, even after a hard refresh of style.css?ver=1.0
Deleting the browser cache didn't fix the problem.
...
1
vote
1
answer
1k
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 ...
0
votes
1
answer
198
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
2
answers
271
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