Welcome! Log In Create A New Profile

Advanced

Re: proxy_cache - Is there a way to cancel file caching from header filter?

April 14, 2011 04:04AM
Thanks Marcus!
This "r->upstream->cacheable = 0;" works like a charm :)
I am going to remove my ugly patch.



On 04/13/2011 06:17 PM, Eugaia wrote:
> Hi,
>
> On 13/04/2011 14:50, Anatoli Marinov wrote:
>> I succeed to remove the file after it is saved in tmp directory and
>> before to be moved in cache directory.
>> The patch is little bit ugly :)
> And wasteful too - it stores, then deletes the cache data.
>> ...
>>
>> Now from any filter when I have instance of request structure I can
>> set r->do_not_cache and the file will not be saved in cache directory.
>> This approach is not so good because there is overhead when saving
>> the file in tmp ... and this file will not be used later.
>>
>> Other ideas?
> I think setting
>
> r->upstream->cacheable = 0;
>
> in your filter (if it's not the full document) should work, and will
> avoid unnecessary caching.
>
> Cheers,
>
> Marcus.
>
>
>
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://nginx.org/mailman/listinfo/nginx-devel


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

proxy_cache - Is there a way to cancel file caching from header filter?

toli 2275 April 13, 2011 05:04AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

Igor Sysoev 818 April 13, 2011 05:48AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

toli 1244 April 13, 2011 06:50AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

toli 1058 April 13, 2011 07:52AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

Eugaia 991 April 13, 2011 11:20AM

Re: proxy_cache - Is there a way to cancel file caching from header filter?

toli 1078 April 14, 2011 04:04AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 290
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