Skip to content

engahmeds3ed/wp-rocket-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CLI interface for the WP Rocket

This repository contains a WP-CLI command 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 clean --confirm -- Purge cache files without prompting for confirmation (usefull for automation tools/scripts)
  • wp rocket preload -- Preload cache files.
  • wp rocket regenerate --file=<file> -- Regenerate .htaccess, advanced-cache.php or the WP Rocket config file.

Installing

If you're using WP-CLI v0.23.0 or later, you can install this package with:

wp package install geekpress/wp-rocket-cli

Changelog

1.1

  • Add regenerate command.

1.0

  • Initial release

About

CLI interface for the WP Rocket

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%