Welcome! Log In Create A New Profile

Advanced

Re: $args getting cleared out when using memcached module. Bug?

Josh Turmel
March 26, 2009 08:07PM
We have messed with it some more and have more information.

Basically our 2 request might look like the following, we have discovered the
first example works, while the second example does not.

Example 1: http://api.examplesite.com/1.0/bible/chapter.xml?reference=rev.22

This will get rewritten to:

api.examplesite.com/index.php?api_version=1.0&call=bible/chapter&reference=rev.22

This call works we found out, now for the next example (example 2) that does not
work and results in the key being sent to memcached as "/index.php?" missing the
$args portion:

Example 2: http://api.examplesite.com/1.0/bible/chapter.xml

This gets rewritten in Nginx as:

api.examplesite.com/index.php?api_version=1.0&call=bible/chapter


What we have deduced is that if the initial request entering Nginx has args then
the $args are properly passed when we set $memcached_key ($uri$is_args$args) but
when the initial request (ie Example 2) does not have args, they are empty, even
though we have rewritten the request.

One odd note though is that $is_args is set properly, so this seems to be
exclusive to $args.

Hope this helps.

Thank you,
Josh
Subject Author Posted

$args getting cleared out when using memcached module. Bug?

jturmel March 26, 2009 05:37PM

Re: $args getting cleared out when using memcached module. Bug?

Josh Turmel March 26, 2009 08:07PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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