Transient data.

What is Transient data, and why you should use it.

Transient data is a principal borrowed from WordPress.

I have never directly used the Transient Data API a but after reading the Docs saw a solid fit for Tentacle.

Transient data offers a simple and standardized way of storing cached data in the database temporarily by giving it a custom name and a timeframe after which it will expire and be deleted.

In this example I am caching an RSS feed, I used CURL to get the XML and covered it to a string ( Because you can not serialize a SimpleXMLElement Object )

Read more

Signup for my mailing list

Receive other rambings like this on design, code, and some times food.