Invalidate cache upon file deletion

If a file stored in the cache is deleted, it should automatically be
removed from the cache without requiring manual invalidation.