Welcome! Log In Create A New Profile

Advanced

Re: Fastcgi_cache Key Length Bug

April 07, 2011 09:59AM
Igor,
It was working as advertised before i setup the fastcgi_cache, using just plain fast_cgi. In the process of trying to debug this, I turned fast_cgi cache on and off, and that particular url worked when fast_cgi cache was turned off.

In addition, extra long urls that normally would have produced a 404 before i implemented fast_cgi cache did not produce a 404, and instead produced the same error mentioned above.

In performing more debugging, I realized that this only happens when the request should bypass the cache, using fastcgi_cache_bypass.

I'm also using the nginx_cache_purge plugin, which I will disable, test again, and report back to see if we can isolate this problem in that particular plugin.

In the meantime, one of these urls works, and the other doesn't, the difference being a single character:
http://alchemi.st/wp-admin/load-scripts.php?load=hoverIntent,common,jquery-color,schedule,wp-ajax-response,autosave,suggest,wp-lists,jquery-ui-core&foobar=asf
http://alchemi.st/wp-admin/load-scripts.php?load=hoverIntent,common,jquery-color,schedule,wp-ajax-response,autosave,suggest,wp-lists,jquery-ui-core&foobar=as

the error that I get is this:
[error] 4671#0: *17568 upstream sent unsupported FastCGI protocol version: 97 while reading upstream,

Take a look here to see my exact configuration: http://alchemi.st/2011/04/05/nginx-wordpress-network-and-fastcgi-cache-the-ultimate-guide/
I added a specific section to the nginx config as a workaround to this particular problem, however, without that workaround, the load-scripts.php script fails, as does any sufficiently long url that should bypass the cache.

What is baffling to me is that the wp-admin/load-scripts.php file should bypass the cache, as I have the wp_logged_in cookie set.

I will try this without the nginx_cache_purge plugin and see how things go.

Thanks again!
Subject Author Posted

Fastcgi_cache Key Length Bug

cromulus April 06, 2011 07:37PM

Re: Fastcgi_cache Key Length Bug

Igor Sysoev April 07, 2011 03:02AM

Re: Fastcgi_cache Key Length Bug

cromulus April 07, 2011 09:59AM

Re: Fastcgi_cache Key Length Bug

cromulus April 07, 2011 11:28AM

Re: Fastcgi_cache Key Length Bug

Maxim Dounin April 07, 2011 09:46PM

Re: Fastcgi_cache Key Length Bug

cromulus April 08, 2011 11:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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