Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using Hyper Cache on my client's site which works great.

However, I recently added the Twitter Pro widget to the sidebar and because of Hyper Cache new tweets don't appear until a new post is added and the cache is cleared. And also the time tweets were tweeted (e.g. "about four hours ago") is always wrong.

Is there a way to stop Hyper Cache caching the Twitter widget?

Link to site - http://bit.ly/xvclET

Thanks

share|improve this question

closed as too localized by toscho Jan 3 at 23:25

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

I don't think you can select certain parts of code to cache or not with Hyper Cache, You can only set the page itself not to cache as a whole (using a global define( 'DONOTCACHEPAGE', 1 );) .

There is a filter you can try add_filter(‘hyper_cache_buffer’, ‘myplugin_hyper_cache_buffer’); but you will have to figure it out, http://www.satollo.net/plugins/hyper-cache

I also think putting it into an iframe might do the trick.

share|improve this answer
Thanks Wyck. I can't set the whole page not to cache because the twitter widget appears on every page but I'll check out the filter. – fxfuture Mar 10 '12 at 9:52
I don't think you can selectively cache or not cache parts of the page with any caching plugin. – s_ha_dum Nov 3 '12 at 19:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.