wp-rocket-cli icon indicating copy to clipboard operation
wp-rocket-cli copied to clipboard

Add commands to control the Remove Unused CSS feature

Open DahmaniAdame opened this issue 3 years ago • 4 comments

None of the CLI commands currently available can delete the used CSS.

Possible commands:

  • Activate/deactivate Remove Unused CSS globally
  • Activate/deactivate Remove Unused CSS per post
  • Delete Used CSS globally
  • Delete Used CSS per URL

Related - https://secure.helpscout.net/conversation/1707574190/310330/

DahmaniAdame avatar Nov 27 '21 09:11 DahmaniAdame

Maybe it should clear this with wp rocket clean ; I guess most people will expect this command to clear any kind of caches well, or have an argument on the command

Androlax2 avatar Nov 30 '21 12:11 Androlax2

As far as I can see, the "Remove Unused" is url based, you can t flush everything except if you know all your urls and loop through it. One way could be to use sitemap listing however that won't help with private urls or dynamics one. Would activate/deactivate the plugin help with this matter ? Not sure

MaraScott avatar Jan 06 '23 11:01 MaraScott

Additional requests: https://secure.helpscout.net/conversation/2685023408/508478?folderId=377611 https://secure.helpscout.net/conversation/2176873889/406751/

webtrainingwheels avatar Aug 20 '24 23:08 webtrainingwheels

Another request: https://secure.helpscout.net/conversation/2694186124/510035

viobru avatar Sep 20 '24 16:09 viobru