Working on cache
flat caching working
added clearing caches