Invalidate cache after modifying teachers order