Invalidate cache upon save and solve caching once and for all