You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/03/01 04:49:08 UTC

[GitHub] [apisix] tzssangglass commented on issue #6474: request help: Some questions about proxy cache plugin, disk cache, cache_ttl and logs

tzssangglass commented on issue #6474:
URL: https://github.com/apache/apisix/issues/6474#issuecomment-1055014423


   > 1. when I used disk cache strategy,  I changed the cache_ttl value  in config.yaml and in plugin parameters by using curl,but the cache seems still keep valid for 10s。so I tried to find how cache cache_ttl works in your code(apisix/plugins/proxy-cache), but I did not figuere out where the cache_ttl works in diskhandler.lua and util.lua 。
   
   This is where cache_ttl works: https://github.com/apache/apisix/blob/bba6a0012b317bff656bdb614ae5e33150fc1920/apisix/plugins/proxy-cache/memory_handler.lua#L289
   
   `conf.cache_ttl` will only be used if `conf.cache_control` is false or `parse_resource_ttl(ctx, cc)` is false.
   
   If you verify out that this is not the case, please provide the full reproduction steps.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org