refactored php plugin to use new cache api