• Resolved Adrian

    (@adriandw)


    I’m running WordFence 5.0.6 with Falcon Engine on a WordPress site which was automatically updated from 3.9 to 3.9.1 about 24 hours ago.

    Really happy with the performance but I just got a warning from my hosting provider that I had exceeded my storage quota.

    cPanel told me
    wfcache size: 562.57MB (589901824 bytes)

    I have a 1.2TB allowance so wfcache was using nearly half.

    As this is a production site I was worried that functions might start failing, so I quickly cleared the Wordfence cache without attempting any debugging.

    Could a crawler which tried to visit every page of my site have caused the cache to grow so large?
    Is there a way to limit the size of the wfcache?

    https://wordpress.org/plugins/wordfence/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mark Maunder

    (@mmaunder)

    Hi Adrian,

    Thanks for the feedback. Can you tell me a bit more about your site? Do you have a lot of pages? Are some of them very large? I’d like to understand how the cache could grow that large.

    If you can share the URL of the site I’d like to take a look at the public website.

    Regards,

    Mark.

    Thread Starter Adrian

    (@adriandw)

    Thanks
    The website is http://compton.parish.hants.gov.uk

    wfcache now contains a lot of files which seem to have been generated from 404s.
    When I open one of the cache files I end up at a page like this
    http://compton.parish.hants.gov.uk/?s=cat+ids~95%2C98%2C97%2C96%2C94&search_404=1

    Up till recently I had been using the All-In-1-events calendar (ai1ec) plugin to imbed events from several public google calendars.
    But I recently removed it from my system because it had never handled repeating gcal events completely correctly, it affected page load times, and updates had caused problems.

    I suspect, but I don’t know, that various search engines may have been trying to update ai1ec pages which they had once cached and which were no longer available.

    I cleared the cache nearly 12 hours ago.
    Since then, about 141MB of cached pages have been added under the wfcache directory compton.parish.hants.gov.uk_diary

    So I’ve added /diary/ as a cache exclusion, which seems to have cleared the cache.
    I’ll watch to see what happens to the cache now.

    Thread Starter Adrian

    (@adriandw)

    well – overnight the cache has grown to 80MB, which is a big reduction from the rate at which it was growing previously.

    I’m really delighted with the performance of the Falcon engine, but concerned about cache size.
    Is there, or do you intend to implement, some kind of max-cache-size parameter?

    The pages on my site are all rather large, because I took the design decision that users should be able to access as much information as possible with a very few clicks.
    This decision could be revisited.

    I’d like to be able to avoid reloading the heavy right navbar (which doesn’t change between pages).
    Any ideas?

    Thread Starter Adrian

    (@adriandw)

    Well I’ve reluctantly turned off the falcon engine and am now using the Wordfence basic caching option.

    Before re-enabling Falcon I’ll need to spend time adding lots of directories to the exclusion list, to try to prevent the cache becoming too large

    Plugin Author Mark Maunder

    (@mmaunder)

    Hi Adrian,

    Thanks for this report. We’ve found the issue and has fixed it. The fix will be in the next release which will be out in less than 7 days. In the mean time please clear the cache using the cache clearing function and temporarily disable Falcon until the new release is out.

    Regards,

    Mark.

    Thread Starter Adrian

    (@adriandw)

    Many thanks. As stated above, I’ve already downgraded to basic caching.
    I’ll continue to keep an eye on the growth of the cache and await the next release.

    Thread Starter Adrian

    (@adriandw)

    Monitoring the basic (non-falcon) cache overnight I’ve seen some large directories appear.

    Could there be a loop somewhere?

    here’s the path to one of the cached files in one of those large directories
    …/wfcache/compton.parish.hants.gov.uk_parish-council/governance-documents~e-documents~minutes~a.share-facebook~/a.share-facebook/a.share-google-plus-1/a.share-facebook/a.share-facebook/_wfcache.html

    I’m going to add /parish-council/governance-documents to my exclusion list

    Thread Starter Adrian

    (@adriandw)

    The cache is now filling up with lots of files of the form

    ../wp-content/wfcache/compton.parish.hants.gov.uk_wp-content/plugins~table-of-contents-plus~~~_wfcache.html
    and
    ../wp-content/wfcache/compton.parish.hants.gov.uk_wp-content/themes~magnitudo~~~_wfcache.html

    I would guess someone is probing the site and receiving a lot of 404s.
    Because WordPress is trying to be helpful each 404 generates a unique error page so a unique cache entry.

    So that’s something else to add to the exclusion list except I can’t afford to keep monitoring the cache for runaway conditions so I will turn caching off till the next release you promised in an earlier post.

    I hope this information has been useful.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘cache runaway storage ?’ is closed to new replies.