[cache] After writing cache to file, update the internal copy to reflect this
Only do it for small caches though. For large cache we'd better off loading the cache file again, mmap()ing it. Based on patch from Diego Santa Cruz.
Showing with 16 additions and 0 deletions