Fix for $this in Cache closure.

$this is not permited in a closure in PHP 5.3. This workaround solves this issue.
Please feel free to change it if you know a better solution.

Cheers,
MichMich.