• Resolved kw

    (@kchrist)


    I just chased down an issue with the Editorial Calendar plugin and found it was caused by Varnish HTTP Purge. Specifically, when rescheduling draft posts via the calendar plugin, Varnish HTTP Purge sends a PURGE request for a not-yet-published post, which results in a 404. This somehow resulted in Editorial Calendar returning an error.

    I’m not clear on the internal interaction happening there but it was consistently reproducible, at least on this one site, and a small change to Varnish HTTP Purge fixed the problem.

    Commenting the four lines that make up purgeUrl() and replacing it with the following single line resolves the issue.

    wp_remote_request($url, array('method' => 'PURGE', 'timeout' => 5));

    Here’s a diff (ignore the revision number shown – I keep my installed plugins in my own version control system):
    https://gist.github.com/kennwilson/5249422

    The (brief) conversation about this issue is here in the Editorial Calendar forum.

    Thanks!

    http://wordpress.org/extend/plugins/varnish-http-purge/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incompatability with Editorial Calendar plugin’ is closed to new replies.