Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #282390

    Hello,

    Currently on my server I’m running WordPress on top of Nginx+Varnish.

    I’ve Varnish configuration set with recommended rules for WordPress:

    # Drop any cookies sent to WordPress.
    sub vcl_recv {
            if (!(req.url ~ "wp-(login|admin)")) {
                unset req.http.cookie;
            }
    
            # Anything else left?
            if (!req.http.cookie) {
                unset req.http.cookie;
            }
    
            # Try a cache-lookup
            return (lookup);
    }
    
    # Drop any cookies WordPress tries to send back to the client.
    sub vcl_fetch {
            if (!(req.url ~ "wp-(login|admin)")) {
                unset beresp.http.set-cookie;
            }
    }
    

    With this setup when I try to edit something on theme options I get error message if Varnish cache is working. Any tips? It’s a cookies problem for sure.

    #282395

    Hi gmarco!

    As far as I know Enfold doesn’t set (or require) any special cookie on the theme option page. I checked all cookies with “EditThisCookie” and on my test server following cookies are used: “_icl_current_admin_language”, “_icl_current_language”, “wordpress_XXX”, “wordpress_logged_in_XXX”, “wp-settings-1”, “wp-settings-time-1”. The first two cookies are set by WPML and not by the theme, the other four cookies are set by wordpress (authentication cookies and editor page settings cookies).

    Best regards,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.