first version of caching
caching
added option to disable caching base on environment setting