added WP-CLI clear cache and fixed the action hook call