Fix 1926: Don't try to reload cache while still being saved

cgCache.gatherMissingFrom could cause the cache to be reloaded in cache details
while it was still being saved to the database
Update PR for #2334
Merge pull request #2331 from campbeb/fix1926

Fix 1926: Don't try to reload cache while still being saved