Welcome! Log In Create A New Profile

Advanced

Re: What if I just delete a file from cache to invalidate cache item?

Piotr Sikora
November 17, 2010 12:28AM
Hi,

> I need to increase the cache lifetime.
> What if I set proxy_cache_valid to something large, and when my data
> changes (cache dependency),
> I would caclulate md5(request_uri) and go to
> /my_nginx_cache_dir/a/ab/abc..... and just delete the corresponding
> cache item.

You should really look into ngx_cache_purge module:
http://labs.frickle.com/nginx_ngx_cache_purge/

Best regards,
Piotr Sikora < piotr.sikora@frickle.com >


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

What if I just delete a file from cache to invalidate cache item?

ttyx November 16, 2010 01:14PM

Re: What if I just delete a file from cache to invalidate cache item?

Maxim Dounin November 16, 2010 01:42PM

Re: What if I just delete a file from cache to invalidate cache item?

Piotr Sikora November 17, 2010 12:28AM

Re: What if I just delete a file from cache to invalidate cache item?

ttyx November 17, 2010 03:45AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 241
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready