The source code of the Repos.io site, a site to help you manage all your repositories (your own, and watched/liked/followed ones) hosted by different providers (github, bitbucket)
Since the "About you and..." block is now on every page, we need to cache it, but in a smart way that will invalidate the cache when a private note/tags are updated. And the duration of the cache should be small (to ensure that the "links" part can be refreshed quickly)
The goal of this cache is only to not run queries again and again for a block not displayed by default (but in the dom for the user's convenience), many times in a short period of time (when a user navigate through the pages of a project)
Since the "About you and..." block is now on every page, we need to cache it, but in a smart way that will invalidate the cache when a private note/tags are updated. And the duration of the cache should be small (to ensure that the "links" part can be refreshed quickly)
The goal of this cache is only to not run queries again and again for a block not displayed by default (but in the dom for the user's convenience), many times in a short period of time (when a user navigate through the pages of a project)