Welcome! Log In Create A New Profile

Advanced

Re: Using the memcache module to your advantage

Josh Turmel
April 01, 2009 11:09PM
We love the memcached module with Nginx, one thing we rewrite all of our initial
requests (that don't have args and are pretty urls into a structure that does
have args.)

Example:

www.example.com/forum/posts/235?sort=desc rewrites to
www.example.com/index.php?framework_uri=forum/posts/235&sort=desc

It seems as such that when Nginx initially gets this requests the $args variable
is empty so it never initializes the variable in the memcached module? Hard to
tell, just guessing here.

So when we do something like this.

set $memcached_key $uri$is_args$args;
memcached_pass localhost:11211
error_page 404 /fallback;

That it looks for the key "/index.php?" with $args not on the string. This
seems to only be a memcached module problem however, because if you comment out
the memcached lines and do an "add_header "test_header" $args; they will contain
your proper args from the rewrite.

We started a post a week or so ago and never heard from anyone, just wondering
if anyone has experienced this or knows a fix, Igor? :)

Thank you,
Josh
Subject Author Posted

Using the memcache module to your advantage

SSSlippy April 01, 2009 06:31PM

Re: Using the memcache module to your advantage

Merlin April 01, 2009 08:00PM

Re: Using the memcache module to your advantage

Josh Turmel April 01, 2009 11:09PM

Re: Using the memcache module to your advantage

qctu January 15, 2010 12:33AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready