Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:cache:lscwp:wordpress_cli [2017/10/16 13:40]
Lisa Clarke proofread and moved off of LSCWP index page onto its own page
litespeed_wiki:cache:lscwp:wordpress_cli [2020/05/04 13:55]
Shivam Saluja
Line 1: Line 1:
 ====== WordPress CLI ====== ====== WordPress CLI ======
 +**Please Note**: This wiki is valid for v2.9.x and below of the LiteSpeed Cache Plugin for WordPress. If you are using v3.0 or above, please see [[https://​docs.litespeedtech.com/​lscache/​lscwp/​overview/​|the new documentation]].
 +
 +WP-CLI is the command-line interface for WordPress. It allows you to perform many actions that would normally require visiting your WordPress Dashboard in a browser. The following commands are provided by LiteSpeed, so that you may manage your cache with the CLI.
  
 ===== Option Commands ===== ===== Option Commands =====
Line 54: Line 57:
 For example, purge the post ids ''​1'',​ ''​3'',​ and ''​5''​ For example, purge the post ids ''​1'',​ ''​3'',​ and ''​5''​
 <​code>​wp lscache-purge post_id 1 3 5</​code>​ <​code>​wp lscache-purge post_id 1 3 5</​code>​
 +
 +===== Image Optimization Commands =====
 +
 +==== Removes original backups ====
 +<​code>​wp lscache-iapi rm_bkup</​code>​
  • Admin
  • Last modified: 2020/11/14 15:45
  • by Lisa Clarke