Don't reset server if classes are cached because this will stop the update from being saved and the git hook will never get a response