Fixes to the documentation, and finally tested and fixed the cache.