The tag has no wiki summary.

learn more… | top users | synonyms

8
votes
3answers
5k 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 ...
8
votes
3answers
557 views

Is there any danger in deleting all transients?

I have a big site for a client, and as it is a really customized wordpress installation with lots of extensions on functionality, I can't use the caching plugins. To improve the performance, I built ...
7
votes
2answers
133 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 ...
5
votes
2answers
1k 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 ...
5
votes
2answers
959 views

Using transients in conjunction with memcached

I was hoping someone could clear the air for me when it comes to using transients with memcached. When running a plugin like w3-total-cache, are there any actual performance advantages to using ...
5
votes
1answer
570 views

How to organize and cache additional data associated with terms?

I'm updating a plugin of mine and am have a hard time figuring out the "best way" to build in a specific bit of functionality. The plugin allows users to associate images from their media library to ...
4
votes
1answer
159 views

Storing posts social counters by using transient api

I would like to know if it's a good practice to use transient api to cache social counters for every post. Loading post pages get quite slow while processing and getting all social APIs.
4
votes
2answers
3k views

W3 Leverage browser caching not working for google pagespeed [closed]

I have a site at http://iqonline.eu which uses w3 total cache for all its caching and minifying purposes and everything is working nicely as per normal. However when checking the site on Google page ...
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
615 views

Best practices for using the transients API

I've recently come across the Transients API in Wordpress in hopes of improving the performance of the plugin that I'm trying to write. Basically the plugin is storing product details from the amazon ...
3
votes
3answers
420 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
312 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
1answer
93 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
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
144 views

How would implement StackExchange 'Questions with similar titles' for the FAQ on my wordpress site

I want to have a FAQ page on my site which has a search box. As the user types in their question, a field below the search box is populated with FAQ answers with similar titles. The exact same ...
3
votes
1answer
238 views

Should the caching of WordPress menus be specific to each page?

Introduction In optimizing large WordPress Websites for performance I always look at caching certain parts of the Website, mostly (of course) those that require a lot of Queries/calculation. For the ...
2
votes
3answers
1k views

Which WordPress pages/URLs should never be cached?

I have a multisite blog that will soon have an Akamai caching service sitting in front of it, serving cached content to visitors (15 minute TTL). I want to configure Akamai to exclude any important ...
2
votes
1answer
403 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
878 views

APC object caching in combination Batcache/memcached page caching?

In the post WordPress Caching Comparisons Part 2 Matt Martz compares different caching setups, among them APC object caching together with Batcache page caching. In his post this combination seems to ...
2
votes
1answer
413 views

Transient caching for wp query

I read about transient in the codex and some questions and answers here. So i'm developing a web app based on wp. It works now, but i want to optimize it. Users manage content regulary, so crud ...
2
votes
1answer
58 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 ...
1
vote
2answers
81 views

Transient API and caching Plugins

Hello wordpress NINJAS.... I am crazy about transient api and I have implemented it in my theme.My question is If I use transient api is it required caching plugin? (I hate plugins!!!) If I use ...
1
vote
2answers
408 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
1answer
46 views

What is the best way to count and display the number of posts?

I have a section in my site where I display the 10 most popular posts. Now, I want to display a number, from 1 to 10, besides each post. Like this: Top 10 posts post a post b post c and so on... ...
1
vote
1answer
46 views

How to archive a wordpress site (make it read only)

Is it possible to make a WordPress deployment read-only? For a website that won't be updated, I'd like to make it read-only/static, so the archive is there but nobody can post, so I don't have to deal ...
1
vote
1answer
128 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
4k 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 ...
1
vote
2answers
276 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 ...
1
vote
1answer
92 views

How to enable Zend Optimiser+ with Batcache

I am using Batcache with APC Object Cache Backend so far. A lot of posts on internet claiming that using Zend Optimizer instead of APC would reduce CPU and memory usage. I could enable Zend ...
1
vote
2answers
659 views

How to optimize multiple WP_Query() calls on one page?

The current site I'm building has a homepage that is going to have around 10 instances of WP_Query(). Some of them are going to pull a series of posts, while others are targeted at one single post ...
1
vote
1answer
58 views

How to implement filesystem cache in Wordpress

I'm currently using the Transients API to cache some product details from Amazon. Now I'm looking into adding a file system cache. But I have no idea how to implement it. The only thing that I can ...
1
vote
2answers
814 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 ...
1
vote
1answer
381 views

WP Super Cache Bug with Ubermenu

Im having a serious issue with WP Super cache and UberMenu. For some reason, every now and again, I will view my site, and it will have the default styling applied to ubermenu and then this unstyled ...
1
vote
1answer
66 views

How to speed up my site [duplicate]

Possible Duplicate: Steps to Optimize WordPress in Regard to Server Load? I've got a WordPress site with a few plugins installed, and it takes a long time to load. I'm concerned about ...
1
vote
1answer
1k views

Will caching WordPress affect session variables, custom filed updates and displaying images from a non wordpress table?

I have a hybrid between a WordPress installation and another database with products data. I have custom php codes which pull product data from the external database. I want to cache everything ...
1
vote
0answers
53 views

How can I use fragment caching to exclude certain plugins from being cached?

I'm using the popular W3TC to optimize load times. The website that I run is dynamic and has login widgets as well as status indicators for game servers. The widgets are not hard-coded into the ...
1
vote
0answers
388 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
52 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
36 views

wp_options flooded with transient API entires

I make heavy use of the WordPress Transient API. Suddenly a few days ago my wp_options table began being flooded with transient entries (2GB worth on average). Normally WordPress only writes them to ...
1
vote
0answers
159 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
230 views

Adding (image) caching to my Tumblr widget

I've hacked together a simple plugin to show the latest image from a Tumblr blog. To avoid upsetting the Tumblr API (v1), I want to cache that image within Wordpress... I think perhaps I can do this ...
0
votes
3answers
996 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
2answers
111 views

Theme compression/ minifying or W3 Total Cache - which should I use? [closed]

I run a WP3.x Multisite setup. One of the themes I use on a site has options for minifying, using Gzip compression and using data URIs for images (not sure what the latter function is or does). In the ...
0
votes
2answers
286 views

Wordpress cache a menu with Transient API

I want to plain to cache a page menu, that takes about 50 queries on page load. At the moment I have cache setting code with Transient API $housemenu = get_transient('housemenu_key'); if ...
0
votes
4answers
8k views

WooCommerce & Caching [closed]

I have a div that displays the total amount of products the customer has in their cart, however this isn't updating as I have caching on (W3 Total Cache). Is there a workaround for this? Cheers, ...
0
votes
1answer
44 views

Take control of WordPress before functions.php

I'm developing theme and I want to make page cache of static pages in my WordPress theme (and basically I know how to implement it) The problem is that when making theme - the first time when I "get ...
0
votes
2answers
154 views

customize wordpress database error page

UPDATE Initially I suspected this was related to the Wordpress framework I'm using (Genesis) or to my child theme functionality, but turns out that's not the case as I was able to get this to work in ...
0
votes
1answer
237 views

Where to put W3 Total Cache rewrite rules in .htaccess? [closed]

Should I put them in the following order or the order doesn't matter at all? # BEGIN W3TC Browser Cache # END W3TC Browser Cache # BEGIN W3TC Page Cache core # END W3TC Page Cache core # WordPress ...
0
votes
3answers
2k views

Disable WordPress cache programmatically on a request [closed]

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
1k views

Why does my site flash white every time it changes page? [closed]

Any ideas? I've never had this problem before. Here is the site.