nginx-modules / ngx_cache_purge

nginx module which support to purge ngx_http_(fastcgi|proxy|scgi|uwsgi)_module cache backend
Other
208 stars 33 forks source link

Fixed URI sometimes not Deleted #37

Open midorinet opened 3 years ago

midorinet commented 3 years ago

I've implemented https://github.com/nginx-modules/ngx_cache_purge/pull/36 however even tough I've fixed uri such as /images/image.jpg, cache doesn't removed

On debug log, sometimes I saw http file cache purge with partial enabled running even I loop the same URI without wildcard

Onother weird debug log that I found key is not deleted is like below

2021/06/03 08:30:58 [debug] 9#9: http cache file "/data/nginx/1a33c4ca21ce8/9/3f/0d8c2799f208c5e0781d98945e6043f9" key read: "1a33c4ca21ce8/assets/web_1.0/fonts/roboto-v18-latin-300.woff2-https://andy.handsome.local2òØœŽ–´¤kp*Ô/•üÌ¢f"£°÷[îxz´·ÙïÖ´úKç¬xJ
UÎÀv±¨ñ6žþܳË>#ì×h¬
˜wVâšõˆ
]»ÊŸ³¸êµø®¹È­$˜_=ué*Ñád_‹7ÁjUeTQñ3_yRŸW*“cýÚ§ã)Ó©‹3 ©Ð|ÿ"
denji commented 3 years ago

I see this code is unstable, I'll move it to the unstable development branch.