Added cache building.
Completed new caching and pagination features.
Fixed stale cache bug.