Added purge cache method