fixed php plugin to use new cache api