activate()
activate() : void
Backward compatibility method
Manage Revisions
clean(array $args = array(), array $assoc_args = array())
Purge cache files
[--post_id=
[--permalink=
[--lang=
[--blog_id=
[--confirm] : Automatic 'yes' to any confirmation
wp rocket clean
wp rocket clean --post_id=2
wp rocket clean --post_id=2,4,6,8
wp rocket clean --permalink=http://example.com
wp rocket clean --permalink=http://example.com,http://example.com/category/(.*)
wp rocket clean --lang=fr
wp rocket clean --lang=fr,de,en,it
wp rocket clean --blog_id=2
wp rocket clean --blog_id=2,4,6,8
array | $args | |
array | $assoc_args |
regenerate(array $args = array(), array $assoc_args = array())
Regenerate file
[--file=
[--nginx=
wp rocket regenerate --file=htaccess
wp rocket regenerate --file=config --nginx=true
array | $args | |
array | $assoc_args |
cdn( $args = array(), $assoc_args = array())
Enable / Disable CDN option and set the CDN URL.
[--enable=
[--host=
[--zone=
wp rocket cdn --enable=false
wp rocket cdn --enable=true --host=http://cdn.example.com
wp rocket cdn --enable=true --host=http://cdn.example.com --zone=all
$args | ||
$assoc_args |
import( $args = array(), $assoc_args = array())
Import Settings JSON.
[--file=
wp rocket import --file=example.json
wp rocket import --file=https://example.com/example.json
$args | ||
$assoc_args |