Comments (8)
Would be nice to clear the Used CSS after a plugin update also
slack: https://wp-media.slack.com/archives/C08N8J6VC/p1697530071237479
from wp-rocket.
I'd personally prefer it to be manually triggered, but maybe we can show a notice to suggest it if needed (like we do with cache clearing after plugin updates). Regenerating the CSS is too time-consuming of a process and should only be done when absolutely necessary, IMO.
from wp-rocket.
Extra feature question:
Does the "clear used CSS" get triggered on a automatic theme update?
from wp-rocket.
I'm running one theme with updates on multiple websites 40+ and I would like to clear the Used CSS after I push a necessary theme update. Now I have to login to every client and press the clear button...
If there is a hook to trigger it from within my theme its also a solution :)
from wp-rocket.
@DahmaniAdame What do you think about this? Automatically clearing Used CSS after each theme/plugin update seems to be a huge waste of resources.
from wp-rocket.
@piotrbak CSS is one of the most important parts of a theme. Theme updates should trigger a regenerate of cache & used CSS.
Tor example: The theme developer fixed html of a button and needed to alter the CSS to maintain the styling. Theme update rolls out, Cache is deleted but Used CSS is not. Then you have a button with new html but broken styling. Don't think that's what you want.
from wp-rocket.
@piotrbak the risk is that if the update has a front-end change. That would result in a broken element.
A notification about the change to the customer with them taking action if necessary will do.
Just like with do when adding/removing a plugin. We prompt a message to ask the customer clear cache if they know there is a change on the frontend. That will reduce the risk of something breaking.
CSS is one of the most important parts of a theme.
It's not always the case.
But I agree that we need to provide a clearer way to communicate the risk and help the customer take action.
from wp-rocket.
@DahmaniAdame So, when the currently used theme is updated, we should display a notice similar to this one?
from wp-rocket.
Related Issues (20)
- WP-Rocket outage today - Makes the plugin unusable HOT 17
- Fatal Error: Argument #3 ($code) must be of type int, string given HOT 1
- Avoid requests to wp-rocket.me to negatively impact site performances during downtime HOT 9
- Skip invisible elements as LCP candidates
- Skip elements without a background as LCP candidates
- Bump WordPress compatible version up to 6.5.4 HOT 2
- As a support agent, I want to be able skip specific LCP elements by selectors for diagnosis and patch issues
- In Dashboard, remove My Status and move analytics to My Account
- Beacon is picking `mp4` as an LCP element in `video`
- As a OCI user, I want control over the accuracy/quick triggering trade-off of the beacon so that I can reduce wrong detection on pages with large images or users with slow internet connections HOT 1
- FetchPriority should ignore inline images (e.g. encoded SVgs) HOT 1
- Largest element with a background-image that is not kept (such as linear-gradient) makes the OCI optimization have no LCP HOT 1
- Truncate OCI table on update to 3.16.1
- 404 file mini file CSS & JS (When using Nginx Cache + Wp Rocket)
- Not compatible with Complianz Premium plugin (Cookie consent)
- Not compatible with PHP 8.1
- PHP Warning: Undefined array key "returnvalue"
- Clear Used CSS button in Divi notice does not work
- Rebrand `Remove Unused CSS` to `Reduce Unused CSS` to reflect what the feature does HOT 1
- Wrong CSS/JS link in subdomain HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-rocket.