• Resolved isMail ElFa

    (@ismail-elfa)


    Hello,

    Object directory in wp-content/cache/ is way too big with over 14.6 GB in size.Is this normal?

    Garbage collection interval is set to 3600 seconds. Should I lower it?

    Thanks,

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

    (@vmarko)

    Hello @ismail-elfa

    I am sorry about the issue you are experiencing and I am happy to assist you with this.
    Object Cache allows us to get data from the database more efficiently. Its purpose is similar to what Database Cache does. But compared to Database Cache, Object cache is more efficient as it allows us to process fewer requests.
    As a rule of thumb, Object Cache is not worth using on shared hosting for the same reason as Database Cache, i.e. database is often not the performance bottleneck, but disk input-output operations.
    However, it can be beneficial to use if you are on VPS or dedicated server, get a lot of traffic, have a lot of comments. Also, if you know that database is the bottleneck of your website performance, then Object Cache (like Database Cache) is beneficial to use. But in this case, it’s recommended to use Opcode, Memcached, or Redis options. In your case, you are caching to disk which sometimes when you have a lot of traffic can use a lot of the disk space.
    To answer your question, yes you should reduce the Object Cache Garbage collection interval. You can also manually delete the Object folder from the cache (it will be regenerated with fewer requests)
    However, I would advise you to use a memory-based caching solution like Redis for Object caching in W3TC.
    Make sure to install phpredis module to be able to select it as a caching method in W3 Total Cache.
    Thanks!

    Thread Starter isMail ElFa

    (@ismail-elfa)

    Hi @vmarko,

    Thank you for your prompt reply. This is very informative and helpful. I’ll try to implement your recommendations.

    Thanks,

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @ismail-elfa

    You are most welcome!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Object directory is way too big’ is closed to new replies.