SCGI and caching not right


#1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to the instruction in the wiki, SCGI is to be set up on a
subdirectory, such as scgi-bin, and then the routing rules map onto that
subdirectory. Page caching then occurs as a conditional rewrite
depending on if
the file is present. The catch then, as documented, is to double up on
every
route, to add the scgi-bin directory:

map.connect ‘:controller/:action/:id’
map.connect ‘scgi-bin/:controller/:action/:id’

This seems to be not very DRY.

Using a directive like:

SCGIMount / 127.0.0.1:9999

makes it so that caching is never called, hence the /scgi-bin/ hack.

Is there a way to tell the map object to prepend sgci-bin/ to every
rule? (but
then it still needs a rule without, for pretty urls without the
scgi-bin)

Any ideas?


David M.
Maia Mailguard - http://www.maiamailguard.com
Morton Software Design and Consulting - http://www.dgrmm.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDetdFSIxC85HZHLMRAm/mAJ9RwG46DhJ0JWB1fvzbQ7RBBhBQywCfY+XW
wGI5NAZtcklaGvqxPs5bAXg=
=Xv1B
-----END PGP SIGNATURE-----