Fix clear_cache and .isRunningLocally