New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUCSS - database grows large when versions of the CSS/JS files change frequently #4161
Comments
https://secure.helpscout.net/conversation/1575931995/281101?folderId=377611 |
Gooming Notes: Can Reproduce:No need to reproduce. The issue is visible in the code directly. Root Cause:Per @engahmeds3ed remarks in OP refs: We are checking whether a given URL exists already in the DB and then adding it if not. Thus, if a version changes in the URL, regardless of whether the content of that URL is identical to any previously saved version, we create a new resource for it in the DB. Scope a Solution:In our Note, It's worth considering that we could also use Tests and fixtures will need to be updated to reflect the new parameters and to add verifictation of not duplicating similar URLs with identical content. Estimate Effort:[S] |
@iCaspar What do you think? |
Indeed, We could run both checks in those cases. |
All: Thanks for addressing this. Our database table "wp_wpr_rucss_resources" (size) is HUGE. Taking up approximately 90% of our whole DB size. Looking forward to your fix. Cheers! |
Related: https://secure.helpscout.net/conversation/1634776100/295569?folderId=2135277 In this case, it seems the culprit is the Salient theme's dynamic styles file: |
Same as others here. I find this feature unusable since it makes the database size grow astronomically. Patiently awaiting a fix, till then asynchronous loading it is. |
Same here, Identical issue. The site crashed because the maximum site of the database has been reached. is there really no fix for this? |
I also had a database going from 8 MB to 800 MB because of this. Such large database killed lots of actions like saving/restoring or doing seach/replaces in there. Timeouts, stalls, and so on. Issue: Expected / suggestion:
So at least this beast becomes more handleable. |
Are you sure you want to hide the discussion away from GitHub to some closed space via those "related" links? |
I don't understand the DEV here This is a SEVERE bug, it breaks some of the sites the plugin is installed on and for moths they are not taking care of it. This bug should have been addressed the moment it was found or at least within the week. What is WP-ROCKET waiting for ? |
Hello @tbba and @Chaiavi. When it comes to the issue itself, we are working on it for a longer period of time already. The fix will be announced and released soon. |
another ticket with the issue: https://secure.helpscout.net/conversation/1798458681/328334?folderId=3864740 |
Related ticket: https://secure.helpscout.net/conversation/1800912983/328748/ |
Until this is fixed, is there an authoritative solution (or at least information source) so we can know how to manually remedy this? Right now I am completely unable to even log into my /wp-admin because the Specifically:
|
Yes.
No. It's there out of the box. No setting is required.
The process depends on the consistency of the CRON. It could be that. In all cases, it's best if you wait for the next iteration of Remove Unused CSS in your case where the resources table will no longer be used on the WordPress side. |
@piotrbak I encountered the same problem. My website has about 16w product pages. I use the editor of elementor pro. I checked wp_wpr_rucss_used_css in woocommerce. Now it has only been about a week and it has a size of 14G. Although I am a dedicated server , but this can not support long-term operation, I am very worried that the server will not be able to withstand the crash at any time, can you solve it as soon as possible or give a solution, I also use the compressed mobile phone side of wp-rocket and the useless css of the computer side and js, I have been looking for solutions everywhere recently, but so far, I don't seem to have found a solution! |
My storage is almost full because of this issue and I can't just delete this table? I've already disabled the "Optimize CSS delivery" option and still I can't delete the |
This is fixed with 3.11 as we are not storing the data of CSS/JS files anymore. |
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
When a page contains a CSS or JS file with a version that is changing dynamically very often (for example on each page load), the database may grow very large even for smaller sites.
To Reproduce
The issue is reported in the ticket https://secure.helpscout.net/conversation/1571200331/279553/
where a version on the file like this:
https://example.com/wp-content/uploads/essential-addons-elementor/cb70d11b8.min.css?ver=1626273953
was changing on every page load.Expected behavior
Avoid regeneration of used CSS if the content of the file doesn't change.
Screenshots
Video shared in Slack: https://wp-media.slack.com/archives/C08N8J6VC/p1626265876027200?thread_ts=1626264564.026500&cid=C08N8J6VC
Additional context
Slack thread: https://wp-media.slack.com/archives/C08N8J6VC/p1626264564026500
@engahmeds3ed remarks:
Ticket: https://secure.helpscout.net/conversation/1571200331/279553/
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: