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
vote
3answers
384 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
5answers
4k views

Speed up Wordpress

I don't have the feeling that my blog is particularly slow, but that's because I haven't really started out yet. I'm very worried that it will get slow soon, especially because I will have blog posts ...
1
vote
2answers
250 views

How many caching plugins should be used?

Online researching shows that there are many plugins out there to perform caching on WP. Just to name a few: WP Super Cache W3 Total Cache WP Widget Cache DB Cache Reloaded 1 Blog Cacher Hyper ...
1
vote
2answers
2k views

NextGen Gallery template cache [closed]

I've implemented a custom Isotope template for the NextGen Gallery plugin, and I've made changes and bug fixes to the template, but when I refresh the page the template changes have not taken effect. ...
1
vote
2answers
487 views

PHP Code stuck in Cache [Memcached] [closed]

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
3answers
233 views

Does WordPress's HTTP API use any caching?

I'm working on a plugin to will retrieve data from a remote server and display it on the Dashboard. To do this, I'll be using the WordPress HTTP API but I'm not seeing any information on the HTTP API ...
1
vote
1answer
77 views

How to cache posts based on $_GET? Option name is too long? Options / transients

I have a search feature set up that is fairly expensive and I want to cache the results, based on the $_get string, like: ...
1
vote
1answer
192 views

How to cache a shortcode functions output?

I would like to show on my startpage the total count of posts in a WordPress Multisite. Those are nearly 7000 in 500 Blogs. So I made a function which has to go through every blog to count the posts. ...
1
vote
2answers
370 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 ...
1
vote
2answers
901 views

Plugin Expires Headers - W3 Total Cache [closed]

Using the Google PageSpeed Online, it looks like the CSS/Images/JS files of most of my plugins (including wp-nivo-slider) do not get their expires-headers set. Is there a solution for this so that W3 ...
1
vote
1answer
3k 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
5answers
260 views

When use a cache system with WordPress

(sorry if this is duplicated but I couldn't find anything related) I have an WordPress 3.0.3 instalation with some custom coding and tried the W3 Total Cache plugin but had some problems...so I've ...
1
vote
3answers
489 views

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

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
278 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
2answers
5k 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 ...
1
vote
2answers
381 views

Is it possible to save an entire piece of rendered HTML in a transient?

I have some query that brings around 50+ posts (I know it's not ideal but had to do that to build something the client asked..) and a set of loops to order them in a certain way and it looks like that ...
1
vote
1answer
60 views

Cache directory needed for plugin

I'm working on a new plugin, and i need to write a frew cache files somewhere. At first i wanted to create a cache folder inside my plugin with the following .gitignore file in it: # Ignore ...
1
vote
1answer
93 views

Can I force get_option to go back to the DB instead of cache?

Is there any way to guarantee that when I call get_option I will definitely get the value from the database and not from cache?
1
vote
1answer
129 views

Static HTML page caching for large website [closed]

I'm creating a WooCommerce store with 3000+ products (+filters). And I'm using WP super cache plugin because I want to serve pages as fast as possible. This arises problems/questions: When any post ...
1
vote
2answers
127 views

Cache previous versions of website?

I'm working on a new site for a charity. They publish a printed magazine & we would like the website to always reflect the current issue of the magazine. So far I have a front page (home page) ...
1
vote
1answer
125 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 ...
1
vote
1answer
123 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, ...
1
vote
2answers
286 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 ...
1
vote
1answer
361 views

Transients API and multisite

we're using the Atlas HTML sitemap plugin, which caches the sitemap using the transients API with a call like: set_transient( 'dmac_html_sitemap', $output, 60*60*24*7 ); Now, we also have a ...
1
vote
2answers
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 ...
1
vote
2answers
630 views

How to set the cache for the built-in SimplePie feed parser?

I'm using the built-in SimplePie, AKA fetch_feed(), to retrieve a feed, and I want to be able to adjust the cache time from an admin menu. SimplePie itself is well documented, but not so much the ...
1
vote
1answer
1k views

How can I add Expire headers to images?

I'm trying to speed up my site a bit. How can I add Expire headers to images I upload? Must this be done with Apache configuration, or is there a setting or plugin to do the job?
1
vote
1answer
113 views

Dynamic Stylesheet loads but doesn't finish

I am creating a website for an architect with large images being a main feature of the site. Given the potential size of the images I wanted to have a way to create responsive image sizing (and of ...
1
vote
3answers
368 views

Prevent installation of style.css cookies and file caching

I'm having a problem which I have never encountered before. When I update my style.css file within my child theme, the webpage does not use the new style. I have pinpointed that to a cookie within ...
1
vote
1answer
265 views

Correct way to perform non-cacheable DB query

Consider the code function getNow() { global $wpdb; $now = $wpdb->get_var("SELECT NOW()"); $wpdb->flush(); return $now; } I am using the above method to avoid caching ...
1
vote
1answer
41 views

Comment Moderation and CDN Caching

I work on a site that is entirely cached by a CDN. We are about to roll out comments and will be moderating every comment before it goes live. When someone posts a comment and the page is rendered ...
1
vote
2answers
80 views

How can I revert to showing cached pages when no database connection is available? [closed]

I don't know much about how super cache works, but I see that at the very least, I can find most of the pages of my site in the wp-content/cache/supercache folder. Now, if WordPress cannot connect to ...
1
vote
1answer
252 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: ...
1
vote
1answer
121 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
1answer
571 views

Headway body classes and W3TC page cache conflict [closed]

I'm currently working on a website using WordPress, Headway, Modernizr and W3 Total Cache. The problem I'm having is that W3TC is caching the body tag, which means that this isn't being updated ...
1
vote
1answer
161 views

Reasonable Size Limit to options entry

I have a set of ~4700 records that I need to have locally searchable for my plugin via an auto-complete (it's the Google Product Search categories). Would it be okay to store this data in the options ...
1
vote
1answer
179 views

Mixing Tweets with Posts

I have a client who wants their blog to display both Posts and Tweets in chronological order. These should be mixed into the same feed. I didn't find any plugins that accomplished this, although there ...
1
vote
1answer
67 views

Is the object cached?

I have a function to instantiate a class to provide var access to other functions. function my_data(){ global $post,$the_data; $postid = get_the_ID(); $the_data = new MY_Class ( $postid ); return ...
1
vote
1answer
426 views

Transient / object cache maximum key length [duplicate]

Possible Duplicate: Long option names fail silently? The WordPress Transients API makes it easy to save expensive values and look them up later. If you install an object backend (such as ...
1
vote
2answers
190 views

How to find time last viewed?

I want to run an update script on pages that haven't been viewed and updated within X days. I'm using post meta to cache some related RSS feed data, and I want it updated once a week or two, but only ...
1
vote
1answer
133 views

Plug-in Conflict: Art Direction and Super Cache

I use Art Direction plugin to create customized posts sometimes. I also want to use Super Cache plugin for traffic spikes. However I've found that once you have Supercache activated Art Direction ...
1
vote
1answer
44 views

How to prevent/delay MySQL connections when an object cache is used?

We are using an object cache backed by memcached, however I think that WordPress will still connect to MySQL on every page load, which shouldn't be needed if all queries can be handled by the object ...
1
vote
0answers
209 views

Wordpress PHP 5.5 and OPcache

I have tried to run on my Apache 2.4 and PHP 5.5 OPcache. My admins turned it on for me but the site was not faster - it was slower. Is there a how-to somewhere or a code snipet needed in WordPress ...
1
vote
0answers
99 views

Cache issues with redis and nginx

I have a problem with the rewrite rules in my nginx config file. I am running wordpress with nginx and redis to cache the site. I can get the redis to cache all pages not a problem, but as I am ...
1
vote
0answers
43 views

Strange caching behaviour [closed]

I changed options in my theme (style settings, to keep it simple just say switched color from blue to red) and it seems nothing happened. After some trial and error I figured out that when I am logged ...
1
vote
0answers
83 views

Index page and random posts needs a forced refresh in order to show new content

I have this weird problem with both on desktop and mobile, which requires a manual refresh in order for the index-page to show new posts. It also appears as if the user is not logged in. Basically, I ...
1
vote
1answer
305 views

Batcache messages no longer in page source

I have placed advanced-cache.php and object-cache.php in wp-contents and updated wp-config.php with define('WP_CACHE', true);, but I do not see the messages in the page source telling me that the page ...
1
vote
2answers
457 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 ...
1
vote
0answers
113 views

.htaccess browser caching and user login [closed]

I have a site that involves user logins for certain content. I am leveraging browser caching in the .htaccess file. When a user logs in, they are redirected to a profile page. The problem I'm having ...
1
vote
0answers
86 views

Transients and WP Super Cache? [closed]

Is it worth using Transients when running WP Super Cache? We have a website that get's updated 20 times a day with new post, so I set a lot transients for queries that don't reflect those updates. My ...