Snippet repository size cache expiration
(for backlog grooming people, this is done!)
Summary
Currently snippet repository size is cached, but is not expired when new content is pushed to the server.
Steps to reproduce
- Create snippet
- Open a rails console, find that snippet
- Get its size by
snippet.repository.size - Push new content onto snippet
- Get its size by
snippet.repository.size
What is the current bug behavior?
Snippet size returned does not change.
What is the expected correct behavior?
Snippet size returned changes.
Output of checks
12.9
Possible fixes
Expire the cache during the code path triggered by file pushes.
Edited by Mark Chao