Chief Alchemist - Business Consulting For The 21st Century Via A Holistic & Intelligent Approach
Share ChiefAlchemist.com. RSS 2.0 feed for ChiefAlchemist.com. Sign up for the mailing list. Follow Chief Alchemist on Twitter. 'Like' the Chief Alchemist's page on Facebook. See what Chief Alchemist has been Q&A'ing on Quora. Chief Alchemist bookmarks & highlights on Diigo.com. Follow the Chief Alchemist on Digg.com. Chief Alchemist channel on Last.fm. Chief Alchemist on Flickr. Mark 'Chief Alchemist' Simchock on LinkedIn. Free Initial Consultation. Email Chief Alchemist. Phone Chief Alchemist.
  • Mark ‘Chief Alchemist’ Simchock
  • 'Email me.Email => ca .at. ChiefAlchemist .dot. com
  • 'Phone me.Alchemy United => 732 997-0028
  •  
  • Free initial consultation.Free => Initial Consultation
  • Please be sure to subscribe to your communication channels of choice.
  • Click To Close => The small green (consultation), red (email) or blue (phone) icons in the top upper right.
CURRENT “TOP 10” TOPICS TOOLS CLIENTS & PROJECTS SOURCES SEARCH HIDE
Business Consulting For The 21st Century Via A Holistic & Intelligent Approach

Making WordPress go faster

Consumed => “WordPress Transients API – Practical examples” by Jean-Baptiste Jung on Cats Who Code.

http://www.catswhocode.com/blog/wordpress-transients-api-practical-examples

=> My value add (i.e., left a comment)…

It’s nice to see some more real examples. Thanks JBJ.

For those who are interested in more examples and a bit more background, I’d like to recommend Andy Killen’s article on SpeckBoy from a couple weeks back.

http://speckyboy.com/2011/12/14/website-speed-part-3-caching-wordpress

While not about transients, Parts 1 and 2 of Andy’s series are worth a go as well. Good stuff!

Moi? The idea of transients is very intriguing. It seems to me that much of what WP does in terms of calls to the DB is often reinventing the same wheel over and over. That is, nothing has changed but the DB/server is taxed with the request. In fact, per the menu example above, it would seem to me that the WP core should make more liberal use of transients. It just makes sense, yes?

I’d also like to suggest that with a simple function, using options can be supplemented with transients. In other words, anytime you’re using the Options API transients can be placed “in front” of that request. If the transient request comes back false/empty then fall back to the option and from there update the transients. My gawd, if you have 6 plugins and each is using options in various ways, cutting out a number of those requests would be a significant savings. (Note: I have this idea in my head but haven’t had the time to hack the code. Seems like a function of a dozen or so lines, eh?)

But again, it would seem such functionality could be part of the WP core. That is, options and transients could be combined into a either a single API or a third API. I’m not quite sure which would be best. Or perhaps my idea is crazy? It wouldn’t be the first time I’ve been accused of such thing.

Required.
Will not be published. Required.
Please include http://