I'm trying to add a cache dependency based on a settings key object. I'm using a code similar to the following:
I forgot to mention that we are using Kentico 6.
cs.CacheDependency = CacheHelper.GetCacheDependency("cms.settingskey|byname|<code_name>");
Where <code_name> is the code name of the settings key.
Regrettably using "cms.settingskey" as dummy cache key is not supported in Kentico 6. This functionality was added in version 7. I am sorry for this inconvenience.
Please, sign in to be able to submit a new answer.