Update extract config method
Add a function to check if deployed
Check if deployed before clearing cache
Get local clear_cache working