• Resolved flyfisher842

    (@flyfisher842)


    I use autoptimize and a caching plugin on most of my sites. On https://www.successfulflyfishing.com, I notice the file mods table is way out of wack with the number of pages I have. I suspect that wordfence is recording every change of cached page from both autoptimize and my caching plugin without cleaning the table when the cache is deleted to clean it out. If I am correct, this results in a constantly and incorrectly increasing database. If the pages of the site were logged for changes there would not be any as I have not worked on this site in over two years.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter flyfisher842

    (@flyfisher842)

    It seems to me that when the cache is deleted to clear it out, that the file mods table should also be emptied.

    • This reply was modified 7 years, 9 months ago by flyfisher842.

    Hi,
    If you mean “wp_wfFileMods” table, then it should be truncated at the start of a new scan, unless your database user is missing the “DROP”/”TRUNCATE” privileges), please check that from (Wordfence > Tools => Diagnostics => MySQL).

    Also, you can exclude “autoptimize” cache files from being scanned by inserting:
    /wp-content/cache/autoptimize/* in “Exclude files from scan that match these wildcard patterns” option.

    Thanks.

    Thread Starter flyfisher842

    (@flyfisher842)

    So what happens when WF is scanning the autoptimize cache and I have deleted the cache to clean it and start over. Does WF still keep the old files in the WF-file mods table? or does that also get cleaned. I am the only admin user on these accounts.

    What happens if I exclude the cache from scans and a hacker gets into those files and mods them. Then WF would not catch those changes would it?

    Data in the “wp_wfFileMods” table only gets purged at the start of every scan, not during scans, so if you killed a running scan, then deleted cache files and started a new scan, it shouldn’t count the cache files into that new scan.

    Regarding your second question, no it wouldn’t, but cache files are always static files, I mean less likely for a malicious code to be executed through them, however, unless it really causes troubles to your server resources, I wound’t suggest excluding them.

    Thanks.

    Hello!

    I hope we were successful in helping you resolve your issue with Wordfence! Since we have not heard back from you in the past 2 weeks I will now be marking this support thread as resolved. However, if we still haven’t resolved your issue please reach out to us as we would be more than happy to further assist you!

    Thanks and have a great day!
    Chloe

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wordfence and autoptimize’ is closed to new replies.