Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#767 closed defect (wontfix)

Deleted fastcgicache items are used with open_file_cache enabled

Reported by: Viktor Szépe Owned by:
Priority: major Milestone:
Component: nginx-module Version: 1.8.x
Keywords: fastcgicache, open_file_cache Cc:
uname -a: Linux hostname 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1 (2015-05-24) x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.8.0
built with OpenSSL 1.0.1k 8 Jan 2015
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_gunzip_module --with-file-aio --with-threads --with-http_spdy_module --with-http_gzip_static_module --without-http_browser_module --without-http_geo_module --without-http_limit_req_module --without-http_limit_conn_module --without-http_memcached_module --without-http_referer_module --without-http_scgi_module --without-http_split_clients_module --without-http_ssi_module --without-http_userid_module --without-http_uwsgi_module --add-module=/usr/src/builddir/debian/modules/nginx-echo --add-module=/usr/src/builddir/debian/modules/nginx-x-rid-header --with-ld-opt=-lossp-uuid

Description

When enabling open_file_cache and deleting all fastcgicache files, fastcgicache files are not regenrated but deleted ones are used.

Please make it possible not to cache fastcgicache file descriptors, or handle this situation otherwise.

After disabling open_file_cache fastcgicache files are immediately regenerated.
Thank you!

Change History (3)

comment:1 by Valentin V. Bartenev, 10 years ago

Resolution: wontfix
Status: newclosed

Deleting cache files isn't an appropriate way of clearing cache. You shouldn't do this.

comment:2 by Viktor Szépe, 10 years ago

Thank you very much for clarifying that.
Please help me on which URL to find docs about clearing the fastcgi cache.

comment:3 by Valentin V. Bartenev, 10 years ago

Look at the fastcgi_cache_purge directive.

Also you can find a 3rd-party module for the same task, but with less functionality.

Note: See TracTickets for help on using tickets.