{"action":"created","issue":{"url":"https://api.github.com/repos/pkhamre/wp-varnish/issues/71","labels_url":"https://api.github.com/repos/pkhamre/wp-varnish/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/pkhamre/wp-varnish/issues/71/comments","events_url":"https://api.github.com/repos/pkhamre/wp-varnish/issues/71/events","html_url":"https://github.com/pkhamre/wp-varnish/issues/71","id":52526451,"number":71,"title":"Won't purge single posts & wrong urls","user":{"login":"someguy9","id":62267,"avatar_url":"https://avatars.githubusercontent.com/u/62267?v=3","gravatar_id":"","url":"https://api.github.com/users/someguy9","html_url":"https://github.com/someguy9","followers_url":"https://api.github.com/users/someguy9/followers","following_url":"https://api.github.com/users/someguy9/following{/other_user}","gists_url":"https://api.github.com/users/someguy9/gists{/gist_id}","starred_url":"https://api.github.com/users/someguy9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/someguy9/subscriptions","organizations_url":"https://api.github.com/users/someguy9/orgs","repos_url":"https://api.github.com/users/someguy9/repos","events_url":"https://api.github.com/users/someguy9/events{/privacy}","received_events_url":"https://api.github.com/users/someguy9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-19T20:43:04Z","updated_at":"2015-05-05T20:15:47Z","closed_at":null,"body":"I noticed in the varnishlog my blog (located at /blog) would appear as /blog/blog in the urls\r\n\r\nI added this to the WPVarnishPurgeObject function to fix the issue above\r\nadd after \"$wpv_url = $wpv_blogaddr . $wpv_url;\"\r\n\r\n    if (0 === strpos($wpv_url, $wpv_blogaddr . $wpv_blogaddr)) {\r\n\t\t$wpv_url = str_replace($wpv_blogaddr . $wpv_blogaddr, $wpv_blogaddr, $wpv_url);\r\n\t}\r\n\r\n\r\nAlso single posts wouldn't purge so I added \r\n\r\n$this->WPVarnishPurgeObject($wpv_url);\r\n\r\nbefore \"// Add support for multipage content for posts and pages\"\r\n\r\nhope this helps someone (I'm running WP 4.1)"},"comment":{"url":"https://api.github.com/repos/pkhamre/wp-varnish/issues/comments/99208552","html_url":"https://github.com/pkhamre/wp-varnish/issues/71#issuecomment-99208552","issue_url":"https://api.github.com/repos/pkhamre/wp-varnish/issues/71","id":99208552,"user":{"login":"kim07","id":10371002,"avatar_url":"https://avatars.githubusercontent.com/u/10371002?v=3","gravatar_id":"","url":"https://api.github.com/users/kim07","html_url":"https://github.com/kim07","followers_url":"https://api.github.com/users/kim07/followers","following_url":"https://api.github.com/users/kim07/following{/other_user}","gists_url":"https://api.github.com/users/kim07/gists{/gist_id}","starred_url":"https://api.github.com/users/kim07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kim07/subscriptions","organizations_url":"https://api.github.com/users/kim07/orgs","repos_url":"https://api.github.com/users/kim07/repos","events_url":"https://api.github.com/users/kim07/events{/privacy}","received_events_url":"https://api.github.com/users/kim07/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T20:15:47Z","updated_at":"2015-05-05T20:15:47Z","body":":+1: "}}