Review list and map iteration.
Check cache ID before resetting size.
Do not shutdown the cache when switching user (see #10502)
Modify the way the registry is accessed.
Merge pull request #846 from jburel/cache_size

Cache size