Welcome! Log In Create A New Profile

Advanced

Many POST requests, fastcgi cache delay?

Posted by maur 
Many POST requests, fastcgi cache delay?
March 09, 2013 03:44AM
Hi,

I have a site with many POST requests.Each visitor is generating one POST requests per second to get status of few things.
With status Im returning current datetime.

Im reading about different options for caching and made few changes:
fastcgi_cache microcache;
fastcgi_cache_methods POST;
fastcgi_cache_bypass $no_cache;
fastcgi_no_cache $no_cache;
#fastcgi_cache_key $scheme$host$request_method$request_uri;
fastcgi_cache_key $server_name|$request_uri;
fastcgi_cache_valid 200 302 1s;
fastcgi_cache_valid 301 1s;
fastcgi_cache_valid any 1s;
fastcgi_max_temp_file_size 1M;
#fastcgi_cache_use_stale updating;
#fastcgi_cache_use_stale updating error timeout invalid_header http_500;
fastcgi_cache_use_stale error;
conf I pasted is in location /status.php

However in firebug I see each second new request - but timer has 1 second delay.
I see for example:
09.03.2013 03:34:00
09.03.2013 03:34:00
09.03.2013 03:34:01
09.03.2013 03:34:01
09.03.2013 03:34:02
09.03.2013 03:34:02
and so on. While without cache I saw each second in response.

Do you have any hints? :)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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