• Resolved deividasjank

    (@deividasjank)


    Hi. I have a strange issue.

    When I click in admin dashboard to empty page cache manually it says: “Page cache successfully emptied”. But it’s not true. I run this command “du -sh wp-content/cache/page_enhanced/” and it shows 40GB+ of cache.

    BTW, I think garbage collector does not work too.

    How can I fix this issue?

    • This topic was modified 2 years, 7 months ago by deividasjank.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @deividasjank

    Thank you for reaching out and I am happy to assist you with this.
    Once the cache is purged, the _old files are created in the /cache folder and new files are generated when the page is visited. The Garbage collection interval kicks in as default in 3600s and removes the _old files
    The Garbage collection interval is triggered by the wp-cron schedule so make sure the wp-cron is not disabled in the wp-config.php
    Can you please also share the website URL and let me know which settings you have enabled in the Performance>General settings and also what caching method you’re using for the modules?

    Thanks!

    Thread Starter deividasjank

    (@deividasjank)

    Hello @vmarko

    Thank you for your assist.
    I see. I thought it removes files too.

    WP cron is not disabled in the wp-config.php and it’s triggered by server’s cron (* * * * * wget xxx/wp-cron.php)

    But the problem is that _old files still exists. For example ls -la command shows this:
    -rw-r--r-- 1 www-data www-data 54132 Aug 12 02:05 _index_slash_ssl.html_gzip_old
    and current date shows Fri Aug 12 06:29:15 UTC 2022. So in theory it should be deleted by now?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @deividasjank

    Thank you for your feedback.
    You can try using WP Control plugin and see the scheduled events. Check if the events are scheduled at all in your WP for corn calls.
    Are you using Cache Preload by any chance in W3TC settings?
    Also, please let me know what other features you are using in W3 Total Cache and what is the caching method.
    Try manually deleting the /cache/ folder and see how fast it grows.

    Thanks!

    Thread Starter deividasjank

    (@deividasjank)

    Hello @vmarko

    Thanks, I’am using WP Crontrol plugin and w3_pgcache_cleanup event is scheduled.

    No, I’m not using Cache Preload.

    I’m using these features:
    – Page cache: Disk enchanted
    – Opcode: Zend opcache
    – Database cache: Memcached
    – Object cache: Memcached
    – Browser cache

    I’ve tried to delete cache folder and in a day it grew to 14GB. Yesterday I did it again but now it stays around 3GB.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @deividasjank

    Thank you for your feedback.
    According to your settings, you should only have Page Caching enabled on Disk: Enhanced, meaning that only page cache will be saved to disk.
    SO to confirm the folder /wp-contnent/cache/page_enhanced/ is now 3GB?
    Can you please share how many pages your website has?
    Thanks!

    Thread Starter deividasjank

    (@deividasjank)

    Hello @vmarko

    After these days cache is still < 3GB, so I think everything is ok now. Thank you for your assistance!

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @deividasjank

    Thank you for your feedback.
    Glad to know everything is working as expected.
    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page cache can’t be purged’ is closed to new replies.