caching
added option to disable caching base on environment setting