• Resolved Sander Schaeffer

    (@blackvibes)


    Hey guys,

    I’ve got a website with about 100-200 visitors a day and I’m using Wordfence to ‘improve security’. I also use Autoptimize because our developer made a design that contains 43 JS requests and 28 CSS sheet requests.. So I needed something to reduce requests.

    Wordfence hoggs diskspace
    However, for every page that is loaded Wordfence adds some inline Javascript requesting some personal info (IP, browser, etc.). That means a string that’s unique per page and per visitor. Which means Autoptimize creates a cached version for every page and visitor. At the current rate Autoptimize creates caching files equal to about 1 gigabyte per 4-5 days, filling the disk space in a very fast pace. At least, I think Wordfence is the only culprit, if I have to believe this guide finding it.

    So how do I exclude Wordfence?
    There is no .js file of Wordfence on each page, so how do I exclude Autoptimize from caching it?

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

    Update:
    I’ve currently set Autoptimize to not cache/aggregate inline-Javascript, which is where Wordfence is put. This should result in less cached pages. However, besides Wordfence there are more Inline-javascript scripts so I’d prefer to turn that option on again. So I’m still seeking a solution. Thanks

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

    (@futtta)

    you’ll have to exclude the inline JS, which indeed has a unique string (suppose it’s a hash or maybe a random string), you can do that by adding wordfence_logHuman to the list of AO JS optimization exclusions.

    hope this helps,
    frank

    Thread Starter Sander Schaeffer

    (@blackvibes)

    Oh wow, that indeed seems to help! ?? I’ve added that line and re-enabled ‘aggregate inline JS’ and all scripts, but Wordfence are gone. So that’s great.

    I’ll wait the week and see if the diskspace gets filled again, or not. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I exclude Wordfence so it doesn't take up disk space?’ is closed to new replies.