Memache key

currently we use:

set $memcached_key “$uri?$args”;

for the key.

put that is causing a couple issues.

if we want to use, full hostname, what is the proper variable to put?

set $memcached_key “$server_name/$uri?$args”;

?

so that if we have

server_name x.co.uk;
server_name www.x.co.uk;

and the url was /home/index.html?t=ed

we could end up with memcache keys for both.

ie i DO want

www.x.co.uk/home/index.html?t=ed

and

x.co.uk/home/index.html?t=ed

to be created as required.

i’m asking because i thought i saw something go by in an email or in
release notes
related to which server name ends up in $server_name

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs