Invalidating cache by Ajax