Follow-up from "Adjust Namespaces::Storage::RootSize cache keys"
The following discussion from !126949 (merged) should be addressed:
-
@jagood started a discussion: (+3 comments) For the
PlanLimits
class,cache_key_with_version
appears to return justplan_limits/id
:I think this is because the
plan_limits
table doesn't have anupdated_at
column: https://docs.gitlab.com/ee/development/caching.html#how-rails-expires-keys
We can add updated_at
column to the PlanLimits
table.
This would also be potentially beneficial, with the introduction of the Admin Controls for storage limits (https://gitlab.com/groups/gitlab-org/-/epics/9173), for easily seeing when the limits were last updated.