Correctly update the cache on folder update/delete ops.