How can I get cache dependencies for custom tables?

HelenaG Grulichova asked on May 31, 2012 06:50

How can I get cache dependencies for custom tables?

Correct Answer

HelenaG Grulichova answered on May 31, 2012 06:50

If you need to flush the cache when you edit/add/delete a record in your custom table (the Custom tables module), the cache key is not ‘<custom table class name>|all’, but ‘customtableitem.<custom table class name>|all’.

You can check the class name of your custom table in the ‘CMS_Class’ table in your Kentico database.

More information about cache dependencies: Deep dive: Cache dependencies
 
-hg-
1 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.