WordPress.org

Forums

W3 Total Cache
[resolved] Cache not clearing. Get white screen instead (13 posts)

  1. databell96
    Member
    Posted 2 years ago #

    I'm preparing a site redesign on BlueHost. Installed W3TC awhile back but now if I try to clear the page cache or all caches, I can't. Server just attempts to connect and then times out with a white screen on a url like http://www.yoursite.org/wp-admin/admin.php?page=w3tc_pgcache

    Seems like a server timeout to me.

    Is there any way I can make the cache flush?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Sean Donovan
    Member
    Posted 2 years ago #

    Likely because your cache is humungous - http://wordpress.org/support/topic/wp-contentcache-folder-at-20-gb

    W3 database caching creates an enormous mess.

  3. databell96
    Member
    Posted 2 years ago #

    Yea, I was thinking that. How do I clear the cache manually so I can at least get back to normal?

  4. Sean Donovan
    Member
    Posted 2 years ago #

    Either through FTP by deleting everything under the cache and w3tc directory or through SSH.

    FTP will take hours if the cache is large as it has to recurse into the directory.

    Best is probably to ask your host to do it, as it's in their best interest not to have a huge number of useless files floating around.

  5. databell96
    Member
    Posted 2 years ago #

    I'm deleting the cache folder contents now. I don't see a w3tc folder but I do see a w3tc-config folder. Same thing?

  6. Sean Donovan
    Member
    Posted 2 years ago #

    No, W3TC needs the config folder

  7. databell96
    Member
    Posted 2 years ago #

    Got a response back from BlueHost. They weren't helpful at all. All they gave me was this link which really doesn't help matters. The cache still isn't completely deleted. It's that large. There has to be a better way than just deleting via FTP.

  8. Sean Donovan
    Member
    Posted 2 years ago #

    Lol, that won't work because there are way too many file to clear the cache which times out PHP...

    I've been clearing the cache via an SSH bash script:

    #!/bin/bash
    echo "Running clear command"
    rm -rf /home/<complete directory to your blog/>/blog/wp-content/cache/*
    echo "Cleared"

    and replace "<complete directory to your blog>" with the exact directory, i.e. /home/myusername/http/wp-content/cache/*

    Few shared hosts give you access to the command line though.

    (FYI - Running a bash script via PHP, although possible, will likely fail too)

    GL.

  9. mrkingid
    Member
    Posted 2 years ago #

    Is this ever going to be fixed. This issue makes the plugin useless!!!

  10. databell96
    Member
    Posted 2 years ago #

    Well, I used the SSH script in Terminal and the cache did clear. So thanks to Sean for that script. It worked. Next step is to find a way I can run a daily or weekly cron job to run said script again.

  11. Sean Donovan
    Member
    Posted 1 year ago #

    I think the most recent version of W3 Total Cache fixed this problem.

  12. Lone Shooter
    Member
    Posted 1 year ago #

    No, the problem is not fixed. If you use enhanced disk caching, the cache files are just stay there causing increasing number of inodes during the time. For some reason they can't be deleted with Empty Cache feature even the cache folder's permissions are valid.

  13. dreamsoft
    Member
    Posted 1 year ago #

    same problem here, only that it's not a timeout, its just an white screen when I try to empty cache

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic