Merge pull request #1403 from cryode/bug/cache_backup

Fix issue where cache backup is ignored on first call.