Update cache rewriting on collection creation

This prevents collections from appearing in the wrong dashboard filters.