CacheManager stripped out of the indexer

Now it's in an independent file.