• Resolved gotmedia

    (@gotmedia)


    Hi there,

    I noticed in wp-content > cache_ > autoptimize > js > I have over 9,000 .js files. I was wondering — do I need all of them?

    Just seems like a lot when I backup my site.

    With my CSS, I have 116 files which isn’t bad, but will obviously grow over time.

    Thoughts?

    Kind regards,
    Stephanie

    https://www.ads-software.com/plugins/autoptimize/

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

    (@futtta)

    Hi Stephanie;
    9000 js files means you probably have “aggregate inline JS” active. as the FAQ explains this can in some cases results in a huge amount of files being cached. you can either disable “aggregate inline JS” (test if all works, you might have to do additional re-config to fix things) or you could try to identify the inline JS that is responsible for the cache busting and exclude just that (see FAQ for more info).

    hope this clarifies,
    frank

    the easiest thing to do is as Frank said uncheck the aggregate inline JS which might return a JS error in which case make sure you exclude jquery.js (which I recommend be excluded by default).

    90% of problems arise when you aggregate jquery with the rest of the JavaScript.

    Thread Starter gotmedia

    (@gotmedia)

    Hi there,

    Thank you for your reply! I did uncheck the aggregate inline JS, but I still do have over 9000 files. Can I delete them?

    Thank you,
    Stephanie

    Plugin Author Frank Goossens

    (@futtta)

    Can I delete them?

    you can, but make sure to also purge any page cache you might have.

    frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Autoptimize Cache Files (over 9,000!)’ is closed to new replies.