does not write cache file if redis empty