Mega cache problem
-
Hello all, Hello Franck
I have a question about cache,
Does the cache grow without limit ?
Can we limit the number of file ? 1 per page ?
I do not understand why there is so much file? I have just 300 pages.
Thanks you for your help
-
as per my reply on your other support post, this is due to inline CSS (in your case) busting your cache. you’ll have to look into that, either by not aggregating inline CSS or by keeping it aggregated but excluding the cache-busting styles.
thanks you š
Is file production endless?
in other words
If I do not empty the cache regularly, will tomorrow I have 10,000 files and next week 100,000 files? Or it will stop ?
In the other post, I wanted to know if it was possible to have 1 file css for all website pages.
- This reply was modified 7 years, 1 month ago by espacemusculation.
- This reply was modified 7 years, 1 month ago by espacemusculation.
- This reply was modified 7 years, 1 month ago by espacemusculation.
it will never stop until you filesystem is full I’m afraid. hence the flashing red light on your dashboard as soon as you reach half a gigabyte š
What I do not understand is why it continues to produce files. Only one file per page should suffice?
For my previous post, I was talking about a single file for all the site.
What I do not understand is why it continues to produce files.
well, if you have inline CSS that changes continuously and if you are aggregating inline said inline CSS, then a new file will be created every time. so main the question is; why do you have inline CSS that changes that regularly?
This is a good question, my inline CSS doesn’t change.
I do not see how and why it would change š
well, i’ve seen plugins that inject HTML with id’s with random values and inline CSS that has selectors that target those random id’s. random id’s would be a good example of changing CSS.
if you can provide your URL I can have a quick look? š
My URL is https://www.espace-musculation.com/
here my plugin :
Ad Inserter
AMP
Easy Social Share Buttons for WordPress 4.1
Force Regenerate Thumbnails
Q2W3 Fixed Widget
Simple Footnotes
Table of Contents Plus
TinyMCE Advanced
Yoast SEO
WP Mobile Detect
WP Sitemap Page
WP RocketThanks you
The source code comes from the wp-rocket cache plugin
So there is no change of id or class
Unless the plugin continues in background to refer to something that changes but that does not change with the creation of the cache.
It is quite bizzare, but there is more file created since a few minutes.
I wonder if when I click on preload the cache in wp-rocket this does not induce the creation of file to infinity.
Because usually I purge the cache and I systematically request a preload but not this time to try and I feel that it is better.
the HTML source is cached by WP Rocket, but:
* it is different for each page
* cached HTML has a lifetime after which it will be purged and regeratedmeaning that there’s enough occasions at which the HTML/ inline CSS can change.
looking at your HTML source I see a lot of selectors like
#execphp-xx
where xx is a number. this _could_ be your culprit; there’s PHP-code injecting HTML-nodes with non-fixed ID’s and hence CSS targeting those non-fixed ID’s.
that exexphp HTML/ CSS is probably generated by this plugin; https://wordpress.org/plugins/php-code-widget/
frank
#execphp-xx is ok I know these id, they are fixed.
Very bizarre, since all by the hour the file counter does not move anymore !! š
Maybe my problem came from the preload system? (That I did not activate this time)
- This reply was modified 7 years, 1 month ago by espacemusculation.
I just activated preloading to test….
I do not understand, the file number has not changed since then.
Thank you for your help in any case, I keep you informed tomorrow (here it is 11h pm) if the number of file exploded
- This reply was modified 7 years, 1 month ago by espacemusculation.
Ok just before going to bed I checked and the number of files exploded.
I test again without preload this time I will see tomorrow waking up
- The topic ‘Mega cache problem’ is closed to new replies.