3

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 the cached query expires it is only cached again when someone loads that page.

Is it possible to preload/prime transient caches so users don't get stuck with that responsibility and long wait time?

If not, should I be using something else to cache that does have that ability?

Thank you in advance for any advice

2

Your issue is not as much priming (which only happens first time) but that cache refreshes in solution you are using are synchronous.

Transients API is not dealing with updates by itself, it is handled by code that calls it. So it doesn't implement async updates.

On other hand there is nothing that prevents implementing async on top of it. It can be done in custom code or making use of generic solution with such functionality, for example WP-TLC-Transients library.

  • That looks like exactly what I need - will be sure to add another question if I have any issues implementing it with my install. – Stephen S. Sep 13 '13 at 0:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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