mirror of
https://github.com/moodle/moodle.git
synced 2025-04-08 01:43:32 +02:00
The cache invalidation check was previously occuring every time either the `set` or `get` function was called on the cache. However, the cache invalidation check is based on the jsrev which is static for the lifetime of the page. This change moved the invalidation to happen during the setup of the AMD module such that it only happens one time per storage type (Local + Session).