Automatically flush the cache when an edit is completed.

This will remove the need for applications to manually flush
the cache.