Update purge method to allow titles param
Make it easier to change the base url