view and data caching for periodicjs