Function enableCache

This function is one of the ways you can enable and disable the cache.