check cache from config
use the cache object from config