WordPress.org

Ready to get started?Download WordPress

Forums

Plugin Varnish Purges
Purging varnish doesn't seem to be working (7 posts)

  1. ovidiubica
    Member
    Posted 3 years ago #

    Hello, I was waiting for such a plugin to show up since the old one was broken.
    Unfortunately, this one doesn't seem to be working either.
    If I add a server and save the settings, it looks like the settings are saved but they remain the same.

    Adding the server at wp-config.php seems to solve the problem somehow but Purging doesn't do anything.

    Any thoughts?

  2. oj.dupuis
    Member
    Plugin Author

    Posted 3 years ago #

    hello,

    I corrected it in version 0.92, sorry about that it was a regression I didn't pay attention about.

    I decided today to move this configuration from a per blog basis to a site wide configuration.
    I just uploaded the V0.93 that solves your problem. It should be soon be available through WordPress.org

    Thanks for your feedback.

    Olivier

    PS: This plugin will be used professionnaly by the end of the month. So IT WILL work !

  3. ovidiubica
    Member
    Posted 3 years ago #

    Great news then. I'm currently using W3-Total-Cache to purge Varnish but for this I need to use Page Caching with it to work.

    With this solution I should be able to only cache the pages using Varnish.

    Keep up the good work.
    Ovidiu

  4. athalas
    Member
    Posted 3 years ago #

    Hi,

    I'm also having some difficult with the plugin, I have version 0.93 network activated on my WPMS3.1.2 install and correctly configured the varnish server in wp-config.php, but once new posts are added the varnish cache doesn't get purged.

    Also once admins have logged in on their site (which run's under the domain mapping plugin) and you view the site its still loading from varnish (no admin bar at the top)

    I've noticed this error in my php log:
    [error] 23860#0: *10920 FastCGI sent in stderr: "PHP Warning: Invalid argument supplied for foreach() in /wp-content/plugins/varnish-purger/varnish-purger-core.class.php on line 134"

    Chris

  5. oj.dupuis
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,

    about the warning I think it is due to the fact that when a post has been modified the Varnish Purger tries to purge all the tag pages where the post is present. But I didn't take the case where no tag is defined into account. I will correct that but it is not a real problem.

    Also once admins have logged in on their site (which run's under the domain mapping plugin) and you view the site its still loading from varnish (no admin bar at the top)

    I think you are using the vcl file provided in the plugins. As on our platform we use custom cookies I think that I understand the problem could you try to replace :

    # ##################
            # 98)Logged in used
            # ##################
            if ( req.http.Cookie ~ "wordpressuser=") {
                set req.http.Domaine = regsub(req.http.Cookie,"wordpressuser=([^;]+)","\1");
                if (req.http.Domaine == regsub(req.http.Host,"^([^\.]+)\.","\1")){
                    return (pass);
                }
            }

    by

    # ##################
            # 98)Logged in used
            # ##################
            if ( req.http.Cookie ~ "wordpress_[^=]+=") {
                    return (pass);
                }
            }

    Could you tell me if that solves your problem ?

    Thanks

    Olivier

  6. floriankohl
    Member
    Posted 3 years ago #

    interestingly enough the plugin purges the subpages for tags without a hitch but not the "main" blog page. any hints?

  7. Everton
    Member
    Posted 3 years ago #

    I have the same problem - rest of the site is purged, but not my homepage, and I don't have the admin bar/'edit' links on the homepage i.e. I'm getting a varnish page.

    I've installed other varnish plugins and they are flushing the homepage, but no admin bar though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic