Skip to content

each directive creates two caches #12

Answered by ryangjchandler
Askancy asked this question in Q&A
Discussion options

You must be logged in to vote

So I think you're actually reading the Debugbar output wrong.. it says that the cache key was "hit" twice, meaning it was read from twice, not created. This is because we first check to see if the cache key exists, and then retrieve the value from the cache. Creation only ever happens once in code, therefore there aren't any problems here.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ryangjchandler
Comment options

Answer selected by ryangjchandler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants