Fix for $this in Cache closure.