Welcome! Log In Create A New Profile

Advanced

PHP-FPM no cache

HTF
July 04, 2011 03:11AM
Hello,

I've enabled caching on php scripts as below but it looks like the server is not caching at all:

http {
fastcgi_cache_path /tmp/cache levels=1:2
keys_zone=tmp:10m
inactive=5m;

server {
location / {
...
fastcgi_cache tmp;
fastcgi_cache_valid any 1h;
fastcgi_cache_min_uses 1;
...
}
}
}

- but the caching directory is totally empty (nginx has write privileges as it was created by nginx itself during reload)
- I haven't noticed any performance improvements by running apache benchmark from different machine

Logs:

2011/07/04 07:53:59 [notice] 1082#0: start cache manager process 1088
2011/07/04 07:53:59 [notice] 1082#0: start cache loader process 1089
2011/07/04 07:54:59 [notice] 1089#0: http file cache: /tmp/cache 0.000M, bsize: 4096
2011/07/04 07:54:59 [notice] 1082#0: signal 17 (SIGCHLD) received
2011/07/04 07:54:59 [notice] 1082#0: cache loader process 1089 exited with code 0
2011/07/04 07:54:59 [notice] 1082#0: signal 29 (SIGIO) received

OS: CentOS 5.6
Nginx version: nginx/0.8.54

Could you help me to solve this please.
Subject Author Posted

PHP-FPM no cache

HTF July 04, 2011 03:11AM

Re: PHP-FPM no cache

Maxim Dounin July 04, 2011 05:02AM

Re: PHP-FPM no cache

HTF July 05, 2011 02:48AM

Re: PHP-FPM no cache

Maxim Dounin July 05, 2011 05:22AM

Re: PHP-FPM no cache

HTF July 06, 2011 02:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready