Cache2: Implemented updating and building of index