CacheDependency on settings key

Mihail Macarie asked on March 24, 2014 06:57

Hello,

I'm trying to add a cache dependency based on a settings key object. I'm using a code similar to the following:

List

Recent Answers


Mihail Macarie answered on March 24, 2014 06:58 (last edited on March 24, 2014 06:58)

I forgot to mention that we are using Kentico 6.

0 votesVote for this answer Mark as a Correct answer

Mihail Macarie answered on March 24, 2014 07:02

cs.CacheDependency = CacheHelper.GetCacheDependency("cms.settingskey|byname|<code_name>");

Where <code_name> is the code name of the settings key.

0 votesVote for this answer Mark as a Correct answer

Roman Koníček answered on March 24, 2014 09:11

Hi,

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.

Best Regards, Roman Konicek

0 votesVote for this answer Mark as a Correct answer

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