Support » Plugin: WP Super Cache » No error when cache can't be deleted (bug report)

  • Resolved Ian Dunn

    (@iandunn)


    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Donncha O Caoimh

    (@donncha)

    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.

    Cool, thanks.

    Plugin Author Donncha O Caoimh

    (@donncha)

    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?

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

    Plugin Author Donncha O Caoimh

    (@donncha)

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

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘No error when cache can't be deleted (bug report)’ is closed to new replies.