[3665] do not persist gitfs cache dir after config change/restart

This should fix #3665. @thatch45, please let me know if there's a better way to do this.