purge cache pubsub implementation