Hi All,
Thanks in advance.
I am using views module for my project. I just want to know how the views are cached in the table. As of my understanding,
cache_views_data table will store the result and html ouput of views for which caching is enabled
cache_views table has 2 rows with cid,
views_data:en -- store the aggregated content of individual default view details.
views_default_views:en -- store the aggregated content of individual default view details. but in a different way.

My doubts are :-
Whether the custom views created by user, are cached
Where is custom views cache
How are they cached?

Once again thanks in advance.

Comments

abhijeet sandil’s picture

You can set cache using function

cache_set('my_module_data', 'cache', serialize($my_data), time() + 360);

where cache is name of table to store data .

See http://api.drupal.org/api/function/cache_set/5 for more detailed references.