This repository contains a WP-CLI plugin for the WP Rocket plugin. After installing this plugin, you will have access to a wp rocket
command.
Currently supported commands:
wp rocket activate
-- Set WP_CACHE to true.wp rocket deactivate
-- Set WP_CACHE to false.wp rocket clean --post_id=<post_id> --permalink=<permalink> --lang=<lang> --blog_id=<blog_id>
-- Purge cache files.wp rocket preload
-- Preload cache files.wp rocket regenerate --file=<file>
-- Regenerate .htaccess, advanced-cache.php or the WP Rocket config file.
For instructions on installing this, and other, WP-CLI community packages, read the Community Packages section of the WP-CLI Wiki.
- Add
regenerate
command.
- Initial release