FRiCKLE/ngx_cache_purge

Impossible to purge URL with Query String.

andreapernici opened this issue · 1 comments

Following the readme configuration of fastcgi_cache I noticed that purge is not working in case of querystring.

Is there a way to solve this?

Ok solved

        location ~ /purge_api(/.*) {

            if ($query_string) {
                set $qstr '?';
            }
            fastcgi_cache_purge API "$scheme$request_method$host$1$qstr$query_string";
        }