WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
[resolved] No error when cache can't be deleted (bug report) (7 posts)

  1. Ian Dunn
    Member
    Posted 2 years ago #

    I recently moved a client to a new server and some visitors reported not seeing new posts. I clicked on the 'Delete Cache' button and it appeared to be successful, but it didn't actually delete the cache. I had to go in and reset the permissions on the cache folder for it to work.

    So, the code shouldn't assume that the cache directory is writable. If it isn't able to write to it, it should display an error.

  2. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for pointing this out. Most errors when deleting are hidden because of the stateless way the web works. When you're posting something, somebody else could be leaving a comment and the plugin thinks it has to delete the same file twice.

    I'll add a warning that the cache directory isn't writeable.

  3. Ian Dunn
    Member
    Posted 2 years ago #

    Cool, thanks.

  4. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    Hmm, there already is a check to make sure your cache directory is writeable. It checks wp-content/cache/ (or whatever it happens to be). Was that the directory that was not writeable?

  5. Ian Dunn
    Member
    Posted 2 years ago #

    Yeah, that's it. Does the check run every time the plugin is instantiated, or only on activation?

  6. Donncha O Caoimh
    Member
    Plugin Author

    Posted 2 years ago #

    It's checked every time you visit the admin page.

  7. Ian Dunn
    Member
    Posted 2 years ago #

    Hmmm, I'm not sure why it didn't fire then.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic