Arjun
Arjun

Reputation: 1

WP-Rocket is not proccessing Remove unused CSS and Inline critical CSS

I'm using WP-Rocket to optimize my site speed with using Remove Unused Css functionality in Wp-Rocket. but somehow it's not generating critical CSS and not removing Unused CSS

Upvotes: 0

Views: 1600

Answers (2)

Marcos Vile
Marcos Vile

Reputation: 65

Use your server's cron to erase the used-css folder and your webserver's user to clean the cache using WP CLI, this way the used-css is cleaned.

example commands:

$ sudo rm -rf /[website dir root]/wp-content/cache/used-css

$ sudo -u www-data /[website dir-root]/wp --path=/[website dir-root]/wp rocket clean --confirm

Upvotes: 0

Adame Dahmani
Adame Dahmani

Reputation: 351

Cron should be running properly. This helps the action scheduler to properly process queued jobs for Remove Unused CSS.

User a server-side cron usually helps.

For Cloudflare and Wordfence, they might be blocking requests coming from the Remove Unused CSS crawler.

You will need to allow IPs related to the service. They can be found here - https://docs.wp-rocket.me/article/1628-which-ip-do-i-need-to-allow-for-wp-rocket

Upvotes: 0

Related Questions