added CacheFactory->clearAll()
small improvements in model caching