Add event for when a cached variable gets changed