Cache misses can occur when platform cache is invalidated. A new circumstance that invalidates some or all platform cache is modifying an Apex class.
You can directly or indirectly modify an Apex class in a few ways.
- Editing the Apex class from Setup or the Developer Console
- Installing or upgrading a package, which modifies an Apex class
- Deploying metadata using the Metadata API, which modifies an Apex class
To ensure that your Apex code handles cache misses, follow platform cache best practices or use the new Cache.CacheBuilder interface.