fixed the mandatory cache dir check even if caching is disabled