• Resolved letterafterz

    (@letterafterz)


    We’ve been using w3tc with object cache turned off on a Woocommerce site.

    Just recently (about 6 days ago), we got a warning email saying suspected malicious activity. In conjunction with that I was having issues setting folder permissions when doing deployments.

    Finally worked out there’s a folder in wp-content/cache/ called object with thousands of folders full of thousands of folders and php files (basically a folder for every hex value, with a folder for every hex value inside each of them, then with a single php file in each folder). I assume this is object caching, but it’s not enabled on our server. Since these folders have been created our server has been running really slowly.

    I’ve turned off w3tc, amd have tried to manually delete these folders and files, but there are so many my server crawls to a halt in the effort of it.

    Any ideas on

    A: What the folder is actually meant for
    B: If that’s the correct functionality for the folder
    C: If there’s a trick to remove these files and prevent their creation in future.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @letterafterz

    Thank you for your inquiry and I am happy to help.
    The mentioned folder is created when using Object Caching. Then the objects are cached in the wp-content/cache/Object Cache/ folder, and yes there can be a lot of files there.
    To answer all your questions, the folder is for the files as explained above, so you should disable Object Caching in Perfomrance>General settings, save all settings and purge the cache and additionally manually delete the folder from your server.
    Thanks!

    Thread Starter letterafterz

    (@letterafterz)

    Hi Marko,

    Thanks for the reply. We never actually turned on object caching so I’m not sure how we ended up with it on our server in the first place.

    Is there an easy way to delete these files? We tried deleting the folders on cli, but the server slower to a crawl and after an hour it barely touched the sides.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @letterafterz

    If the OC was not enabled then there is no way that this was filled by W3 Total Cache.
    Make sure some other plugin is not being used for Object Caching.
    The only way is to delete them manually, via FTP, cPanel, etc.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘cache/object has gone crazy’ is closed to new replies.