building ngx_cache_purge module on CentOS Linux release 7.9.2009 (Core)

Kaushal Shriyan kaushalshriyan at gmail.com
Mon May 9 03:14:32 UTC 2022


Hi Sergey,

Is there a way to find out what URLs are cached in Nginx Cache? from Nginx
command line utility or /etc/nginx/nginx.conf

# pwd
/var/www/nginx/cache
#ls -l
total 0
drwxrwxrwx. 14 nginx deployuser 114 May  8 05:58 content
drwxrwxrwx. 15 nginx deployuser 123 May  8 07:31 files
#cd /var/www/nginx/cache/files
# ls -l
total 0
drwx------ 4 nginx nginx 26 May  8 05:58 0
drwx------ 4 nginx nginx 26 May  8 06:04 1
drwx------ 5 nginx nginx 36 May  8 05:58 2
drwx------ 3 nginx nginx 16 May  6 12:12 3
drwx------ 4 nginx nginx 26 May  8 05:58 4
drwx------ 3 nginx nginx 16 May  8 06:04 6
drwx------ 3 nginx nginx 16 May  8 06:04 7
drwx------ 3 nginx nginx 16 May  5 10:44 9
drwx------ 3 nginx nginx 16 May  5 10:44 a
drwx------ 3 nginx nginx 16 May  8 06:04 b
drwx------ 3 nginx nginx 16 May  8 07:31 d
drwx------ 4 nginx nginx 26 May  8 06:04 e
drwx------ 3 nginx nginx 16 May  5 11:29 f
# cd /var/www/nginx/cache/content
# ls -l
total 0
drwx------ 3 nginx nginx 16 May  6 05:28 1
drwx------ 5 nginx nginx 36 May  8 11:39 2
drwx------ 3 nginx nginx 16 May  6 12:12 3
drwx------ 3 nginx nginx 16 May  8 05:58 4
drwx------ 6 nginx nginx 46 May  5 08:03 5
drwx------ 6 nginx nginx 46 May  8 07:31 7
drwx------ 4 nginx nginx 26 May  5 08:03 8
drwx------ 3 nginx nginx 16 May  4 17:21 9
drwx------ 4 nginx nginx 26 May  8 06:04 a
drwx------ 5 nginx nginx 36 May  8 06:30 c
drwx------ 3 nginx nginx 16 May  5 06:21 d
drwx------ 4 nginx nginx 26 May  5 08:03 f
#

Please guide me. Thanks in Advance.

Best Regards,

Kaushal

On Mon, May 9, 2022 at 8:30 AM Sergey A. Osokin <osa at freebsd.org.ru> wrote:

> Hi Kaushal,
>
> On Mon, May 09, 2022 at 07:56:50AM +0530, Kaushal Shriyan wrote:
> > Hi Sergey,
> >
> > I am not sure if I completely understand
> > https://github.com/FRiCKLE/ngx_cache_purge/tree/master/t. Any examples
> to
> > create and run the test cases?
>
> Sure, please take a look on the followving URL [1].
>
> References:
> 1. https://perldoc.perl.org/prove
>
> --
> Sergey A. Osokin
> _______________________________________________
> nginx mailing list -- nginx at nginx.org
> To unsubscribe send an email to nginx-leave at nginx.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20220509/5aef817d/attachment.htm>


More information about the nginx mailing list