[development] Proper way to cache data

Augustin (Beginner) drupal.beginner at wechange.org
Fri May 18 20:51:30 UTC 2007


I cannot find in the handbook a tutorial on the proper way to cache data.

A function (http://drupal.org/node/144969) is calculating the values in a 
large array, and I want to serialize the result to be able to cache it on the 
database. This way, the array can be made static between requests, for better 

What would be the way to go about it?
Which {cache_*} table to use, what value to use for cid, etc?
How often or in what conditions are each of the cache tables emptied?

Is any of the above already documented somewhere?



Because we and the world need to change.
Intimate Relationships, peace and harmony in the couple.

More information about the development mailing list