5

There is Cache_Tagging in Kohana but it does not explain what it is. Can anyone tell what Cache Tagging is supposed to do or when do we use it ?

2
  • You are linking to localhost... Commented Apr 26, 2012 at 11:35
  • @ThiefMaster: sorry, thanks for updating :) Commented Apr 26, 2012 at 11:37

2 Answers 2

12

Some cache implementations allow you to add one or more tags to any data item you store in the cache, and then find or delete all items with a given tag. This can be useful for a number of things, most significantly batch updates (you add a bunch of related stuff to the cache, tag it with a version string, and when you later learn that data from that version has become outdated, tell the cache to drop it all at once).

Sign up to request clarification or add additional context in comments.

Comments

3

My guess is that you can set tags to cache entries and then delete cache entries by tag (s ?). That way, you're able to clear part of the cache very selectively, with your own rules.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.