My object cache is not clearing also.
I am using
page cache – disk enhanced
object cache – disk
browser cache – on
Garbage collection and expires header lifetime set to 1800 secs on all options.
Cron GUI plugin shows tasks to clear cache in cron list, but the files are never cleared…and baloon in size.
Manual clearing of cache from admin button works.
I know its not only me….any updates on this
latest versions of w3tc and WP
That’s a different problem to this one. The problem in this thread is that transients set during cron runs with update_transient are sometimes no longer found (returns nothing with get_transient) during later cron runs.
The improvement was that the object cache is not purged as much anymore.
When do you set the transients? Is it in backend, frontend, logged in, not logged in? Are users calling empty cache?
Emptying Object Cache or all caches, the engine used for transients will remove the transients as well.
Hi Frederick,
No emptying of the object cache is involved.
My code runs during an action called via wp_schedule_single_event(). It sets a transient with update_transient(). The action itself re-calls wp_schedule_single_event() to invoke itself again 5 minutes later. This can happen various times. The re-called code calls get_transient() to get the data that was set earlier with update_transient(). Sometimes, get_transient() returns nothing (false/null).
The problem is random, i.e. does not happen every time. However, testing it many times on various different sites establishes one common factor – the problem only ever occurs on site’s where W3 Total Cache’s object cache is active, and never occurs when it is turned off.
David
I am getting a problem with transients as well when I set a transient in a function hooked to a shortcode. I try to retrieve the transient in an ajax request, and it’s not there. This problem doesn’t happen when I have object caching off.
I assume you meant set_transient? And also that is just together with wp-cron? Which cache engine do you use? We’ll look into cron and transients some more.
I got similar problems with set_transient() with version 0.9.3 installed.
The function get_tranisent() was always returning false no matter what.
By reverting back to 0.9.2.9 it started working normal again.
ps:
My setup is:
page cache – apc
object cache – apc
browser cache – on
Hi birgire,
This thread is a bout a different problem, which happens during WP_CRON, and exists in 0.9.2.9 too. I’ve seen your problem (APC/outside WP_CRON/0.9.3) too, but you should start a separate thread for it as it’s a separate problem.
David
Hi, David Anderson
ok, sorry about that.
I haven’t used the Updraft plugin and you didn’t mention wp-cron in your question and it sounded very similar to my w3tc object cache + transient problem 😉
cheers
ps: any way I found this
http://ww.wp.xz.cn/support/topic/bug-in-apc-object-cache-wp_cache_set-making-it-fail
that might be related to the problem I’m seeing and/or related to yours?