Introduced a delay in the cache refresh loop

fixes #2