Support » Plugin: PageSpeed Ninja » Clearing the cache: site down

  • Hi, I noticed that when I delete the “page cache” my site goes down for a few seconds, usually 15-30sec.
    Most likely it is because the daily cache is very heavy.
    How can I avoid this “down” of my site?
    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
  • I disabled the plugin, I tried to reactivate it but it wasn’t possible. WordPress tells me that there was an error.
    I believe it is due to the weight of the cache, the static files had 35 GB in 335687 files(s) of cache!!
    So I deleted the plugin manually, deleting the files from server, the site went down for 20 minutes to clear all the cache. Really bad for me.
    I believe you should find a solution to sites with many pages that take up more cache.
    Thanks

    • This reply was modified 1 year, 4 months ago by marcorroma.
    Plugin Author Denis Ryabov

    (@dryabov)

    22Gb iss too much for static cache. I guess you have some inlined javascript code that varies between pages (or even between users) that results in a lot of unique one-time files in cache. In this case it is necessary to disable merging of embedded javascripts and stylesheets (css).

    Thanks for your answer.
    What do you mean “I guess you have some inlined javascript code that varies between pages”?
    I use WordPress in a classic way.
    Categories, Posts, 4 Pages and Homepage

    Ps.I disabled only “merge script files” but the http requests increased by 40-50 more

    • This reply was modified 1 year, 4 months ago by marcorroma.
    Plugin Author Denis Ryabov

    (@dryabov)

    Some plugins inserts javascript codes like

    <script>var current_url='https://yourdomain.com/current-page-path';</script>

    or even

    <script>var current_time=1564577645;/*current unix epoch time*/</script>

    and this code varies from page to page, and so results in unique merged javascript file for every page.

    Plugin Author Denis Ryabov

    (@dryabov)

    What is URL of your website?

    I have plugins like: Custom Sidebars, AdRotate, ecc.

    My site is: xzxzxzxzxxzxzxzxzxxzxzxzxzxxzxzxzxzx.xz
    (when you answer me, I cancel the site url)

    • This reply was modified 1 year, 4 months ago by marcorroma.
    Plugin Author Denis Ryabov

    (@dryabov)

    copied

    Plugin Author Denis Ryabov

    (@dryabov)

    It is AdRotate that generates unique js codes.

    Thanks!

    How can I solve the problem?
    Is the solution just to exclude AdRotate scripts from your plugin?
    Are there alternatives?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Clearing the cache: site down’ is closed to new replies.