fixed sleep for maintain_cache.py