• Hello
    Sorry I am new here and don’t know how this source code collaboration works, so just wanted to say that I found a small bug – when post is trashed, it is not removed from cache.

    The reason is, that when get_permalink() is called on an already trashed post, the returned url is in a format http://site.com/article__trashed/. I don’t know where to fix it in a most clean way, but something like this can be added to the beginning of the purgeUrl() method:

    $url = str_replace(“__trashed”, “”, $url);

    Then it works as expected.

    Thanks,
    Peter

The topic ‘Bug (with a suggested solution) when trashing a post’ is closed to new replies.