• Resolved espacemusculation

    (@espacemusculation)


    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

Viewing 15 replies - 1 through 15 (of 25 total)
  • Plugin Author Frank Goossens

    (@futtta)

    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.

    Thread Starter espacemusculation

    (@espacemusculation)

    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.

    Plugin Author Frank Goossens

    (@futtta)

    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 šŸ™‚

    Thread Starter espacemusculation

    (@espacemusculation)

    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.

    Plugin Author Frank Goossens

    (@futtta)

    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?

    Thread Starter espacemusculation

    (@espacemusculation)

    This is a good question, my inline CSS doesn’t change.

    I do not see how and why it would change šŸ™

    Plugin Author Frank Goossens

    (@futtta)

    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? šŸ™‚

    Thread Starter espacemusculation

    (@espacemusculation)

    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 Rocket

    Thanks you

    Thread Starter espacemusculation

    (@espacemusculation)

    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.

    Thread Starter espacemusculation

    (@espacemusculation)

    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.

    Plugin Author Frank Goossens

    (@futtta)

    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 regerated

    meaning 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

    Thread Starter espacemusculation

    (@espacemusculation)

    #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)

    Thread Starter espacemusculation

    (@espacemusculation)

    I just activated preloading to test….

    Thread Starter espacemusculation

    (@espacemusculation)

    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

    Thread Starter espacemusculation

    (@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

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Mega cache problem’ is closed to new replies.