• if I have a post with an image, 1.png and I delete that image it does not get purged.

    If I then upload another image with the same name the first image the first image gets served from catch. If

    I put some std.log entries in my purge routines in the vcl. The image itself is not being purged but everything else is working as expected.

    # varnishlog | grep VCL_Log | grep PURGE
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/test-content/attachment/1/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/229-autosave/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/229-autosave/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/229-revision-16/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/test-content/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/test-content/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
    
    deleted image from media library
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/test-content/attachment/1/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/229-autosave/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
    
    uploading new 1.png
    
    saving page
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/229-autosave/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/229-autosave/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/229-autosave/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/$ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/feed/atom/ && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: REGEX :: obj.http.X-Req-URL ~ /XXXXXXXX/category/(.*) && obj.http.X-Req-Host == SERVER.EDU
       15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/2014/01/10/229-revision-17/ && obj.http.X-Req-Host == SERVER.EDU

    if I go to the wordpress varnish administration page and put the image in the purge url it works and purges then the new image is served and cached

    15 VCL_Log      c PURGE :: PAGE :: obj.http.X-Req-URL-Base == /XXXXXXXX/wp-content/blogs.dir/11/files/2014/01/1.png && obj.http.X-Req-Host == SERVER.EDU
  • The topic ‘found a bug’ is closed to new replies.