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

-1
votes
1answer
357 views

How to specify expiration of cacheable resources? [closed]

I'm trying to speed up a wordpress site -- this site: http://richardclunan.net I'm following the observations here: http://gtmetrix.com/reports/richardclunan.net/9ps7Zc0j The first item says: "The ...
1
vote
3answers
353 views

server load. $_SERVER['REMOTE_ADDR'] and $_SERVER['HTTP_HOST']

while writing new code and testing it, I incorporate it into my site by testing for the remote IP address as follows; i.e., I'm the only one who will see the new code: in /functions.php: // to hide ...
1
vote
1answer
212 views

w3 total cache and sitemap.xml

I have been installing lately w3 total cache on my wordpress site and today webmaster tools has been mailing an error by sitemap.xml crawling. Sitemap ist HTML. Is anybody experienced this issue with ...
1
vote
1answer
171 views

Using a wildcard with delete_transient()

I am using the Transients API to hold the output for a gallery plugin's shortcode I created. Due to the number of images used and different layouts needed, the transient name looks lik the following: ...
0
votes
1answer
122 views

How do I serve fully cached full HTML on cloudfront

I am using cloud front but want it to serve not just images and CSS but full static HTML pages that are cached locally. I am using wp super cache ... I assume it is caching the full HTML for posts ...
0
votes
1answer
82 views

Repeated nav bar queries failing to be cached

Every time a page view occurs, wordpress is sending a complex non-indexed query below. The exact same query is sent over and over and it seems that it is being passed through some "caching" code. But ...
0
votes
2answers
855 views

wp-super-cache exclude file from caching

Is there any mean to exclude a *.php file to WP Super Cache? I've in my single.php page an include news.php, the file news.php contains ten links to my last articles. So I want to cache single.php ...
0
votes
1answer
1k views

posts_per_page doesnt work

Here is the my custom query ; <?php $Poz = new WP_Query(array( 'posts_per_page' => 3, 'orderby' => 'date', ...
0
votes
3answers
639 views

Disable WordPress cache programmatically on a request

How do I turn off the WP Super Cache & W3 Total Cache functionality programmatically? For instance, I neither want to make it use the cache on some requests nor cache the output of the request, do ...
0
votes
2answers
61 views

Is it duplicated if I cache an object that uses data from postmeta?

I have an object that saves its data in postmeta. When there is a post_id, the object class will query data by using get_post_cutom(); After get data, it starts to do its jobs, the end result is a ...
2
votes
1answer
556 views

Programmatically insert hierarchical terms & set terms for post causes glitch? [duplicate]

I am inserting an array of terms into my custom taxonomy programmatically. Some terms have parents/children. After each term has been entered, I then insert an array of posts into my custom post type. ...
4
votes
1answer
715 views

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

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 ...
1
vote
1answer
111 views

Can WordPress Plugin Directory Cache Delay the Upload of Images?

I've updated my plugin and I can see the updated text on the plugin page but I don't see any of the screenshots or header image. Is it possible that the cache will move the image files over later? Or ...
0
votes
3answers
722 views

Is the W3 Total Cache plugin a good choice for WordPress MultiSite? [closed]

I heard that many people had issues with W3 Total Cache on a WordPress MultiSite install. And then I see this on the plugin page: Compatible up to: 3.2.1 Last Updated: 2011-8-26 Seeing that ...
0
votes
1answer
257 views

Where does WordPress default SimplePie save cache data?

Where does WordPress default SimplePie save cache data? I could only find relevant info about cache durations but not the location. SimplePie has a method called set_cache_location() but I cannot find ...
3
votes
1answer
296 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( ...
3
votes
1answer
181 views

Should I use Transients with W3 Total Cache APC Caching?

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" ) ) { ...
0
votes
1answer
65 views

Problem with caching, W3TC [closed]

Am using W3TC from a long time but from past few weeks am stuck, as I can't see my edits working. It was all fine in past but from a week my edits in style.css reflects back in like an hour after. ...
-1
votes
1answer
724 views

Any idea why Google not caching my site? [closed]

My site www.books-for-children.com (developed in Wordpress) has been live for about two months and still has not been cached by Google, which seems highly unusual. Any ideas why? Thank you.
0
votes
1answer
1k views

Bluehost WebHost and performance problems with W3TC

I'm currently arguing with Bluehost over slow server times and they pointed to a report at gtmetrix.com in which I found inefficient CSS selectors. There were 55 very inefficient CSS selectors from ...
1
vote
0answers
186 views

After having installed APC Object Cache Backend transients stopped working

My understanding is that once you enable the persistent object cache, your transients are no longer stored in wp_options but in the cache. Once I installed Mark Jaquith's APC Object Cache Backend, ...
3
votes
1answer
1k views

Varnish + W3 Total Page Cache

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 ...
1
vote
0answers
32 views

Caching RSS plugin data

I'm developing plugin and I need it's data to be cached, let's assume that it's large RSS feed grabber. Basically data of one RSS feed is about 100 lines of parsed HTML code (about 2KB). On one page ...
0
votes
2answers
83 views

How effective are cacheing plugins for dynamic pages?

The majority of pages of one of my sites can only be accessed by registered users. While these pages do share some common, static content (headers, etc) most of the information on the page is ...
0
votes
2answers
195 views

Transient api Caches confused

This code works for page 1 <?php $paged1 = (get_query_var('paged')) ? get_query_var('paged') : 1; $recent1 = get_transient( 'recent1' ); if ...
0
votes
1answer
151 views

Pagination in wp query with transient api

I have intergrated wordpress transient system with w3 total cache. Now i can`t to do pagination for this query. <?php $paged1 = ...
2
votes
1answer
136 views

How does the default recent posts widget work with cache?

I am trying to build a widget based on the default wordpress recent posts widget. In wp-includes/default-widget.php , I noticed in class WP_Widget_Recent_Posts in function widget(), the recent posts ...
7
votes
2answers
2k 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 ...
0
votes
1answer
156 views

Shortcode Strategy

I'm looking to insert data from another database into my posts, and thought of using shortcodes. An example post: [imdb id="123" name] was born [imdb id="123" birthday] in [imdb id="123" ...
0
votes
1answer
66 views

Cache plugin for medium traffic news blog

I have a middle-low traffic blog. Server is lite speed based. And ping values 20-25 MS for my Country ( this blog not global,just for my Country ) I want to Install a light cache plugin... Which ...
1
vote
0answers
230 views

WP-Super-Cache - generate cache programmatically

I wonder if there is possibility to generate WP-Super-Cache programmatically after the cache is being purged ( after I have published a new post ). I thought of writing some kind of crawler that will ...
1
vote
2answers
390 views

PHP Code stuck in Cache [Memcached]

Been having a bit of a problem with my site regarding our caching method and my php code not refreshing or flushing. To start, my site is on a dedicated Nginx webserver. I used W3 Total Cache for ...
1
vote
1answer
115 views

Where should a plugin or widget cache its results?

Where should a plugin cache its re-usable results? I have read the code of several well-used Wordpress plugins, and it seems that the answer is not consistent. I have written several plugins myself, ...
0
votes
1answer
58 views

Client cant see the Updated dynamic content

I have came across an issue... whenever I upload new content to the site.. and i send the link to the client.. He can not view the changes instead what he see is the previously updated content. Looks ...
1
vote
1answer
233 views

Optimizing Jetpack for Wordpress [closed]

Yslow reports following issues with Jetpack: 1) Compress http://stats.wordpress.com/e-201219.js using gzip 2) Configure etags for http://stats.wordpress.com/g.gif?... Modified the format so that it ...
1
vote
1answer
106 views

Get the timout value of a saved transient?

Does anyone know if there is a Wordpress function to get the timeout value of a saved transient? I am using a transient with a 5 minute timeout to cache data from a web API call locally. Between ...
1
vote
3answers
1k 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
245 views

How many SQL queries WP Super Cache make to serve cached page?

WP Super Cache plugin generate page and save html of this page to static file and if needed this file is served instead of dynamically generate this page each time. Does WP Super Cache plugin make ...
3
votes
2answers
212 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 ...
0
votes
1answer
586 views

Scheduling doesn't work due to caching?

I'm using W3 Total Cache and Nginx with Varnish, and I'm very happy with the speed. However, I noticed that when I schedule a post, the post doesn't get automatically posted when I'm a visitor. When ...
2
votes
2answers
990 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 = ...
0
votes
1answer
47 views

WordPress cache feeds

I would like to implement a custom cache for all the feeds in my site. The rss requests are very intensive and I have a big db load. Do anyone know of a good action before running the rss query so I ...
0
votes
1answer
593 views

APC fragmention woes on Apache AWS EC2 Small instance with WordPress and W3TC

Asked this question at serverfault, and got confirmation that W3TC is most likely causing the issue, but several of my more W3TC/Wordpress specific issues weren't able to be answered. Reposting ...
0
votes
1answer
59 views

W3 Total Cache Minification: way to revert back?

W3 Total Cache Minification: after adding all my js files in the minification settings, what if something screws up? Is is possible to revert back to the original un-minified files? Thanks.
0
votes
1answer
1k views

How to Automatically import external images to Upload

Hi to all I would like to have a simple plugin, hook, anything that Automatically caches external images. Simple explanation: Actually I'm using this plugin: ...
0
votes
1answer
131 views

what is the cache directory for in my theme? (version control it?)

I was wondering what processes exactly use the cache directory inside my theme's directory. More specifically, I am wondering if I should add any of those files to my git repo.
3
votes
4answers
491 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 ...
1
vote
2answers
325 views

WordPress Caching - Transients API or “update_user_meta ” Cronjob?

I'm trying to set user meta based on queries. Basically, things like IF the query returns true, set this or if not, set this (or don't set it, if it is true). This works great but the problem is I ...
3
votes
2answers
191 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 ...
10
votes
7answers
7k 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 ...