Duplicate Queries 1.2.6 - 1.2.7

2010-05-04 Thread Brian Watson
I have an original app built on 1.2.6 and simply edited my webroot/index.php to 
pull the site using the 1.2.7 lib on the server. Everything works fine except I 
noticed extra queries.

Exactly 4 additional queries happen on 1.2.7 and they are the exact same 
queries to the session table.

I did a quick note of queries for various pages on 1.2.6 and then 1.2.7 and its 
the same on every page.4 Extra session queries. Anyone else seeing this?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Version 1.3 Routing & Vanity URLs

2010-05-04 Thread Brian Watson

Did anyone find a solution to this as I have the exact same problem.

Thanks
- Original Message - 
From: "CharlesTMunger" 

To: "CakePHP" 
Sent: Monday, May 03, 2010 2:01 AM
Subject: Version 1.3 Routing & Vanity URLs



In my 1.2x app I have vanity URLs from the base.  I.e., a user named
"munger" can have his page located at:

www.mysite.com/munger

Accomplishing this was pretty straightforward -- in my routes.php I
had this line at the end:

Router::connect('(?!admin|users|posts)(.*)', array('controller'=>'users', 
'action'=>'view'));


Then, in the view method of my users_controller, I simply did a find
based on user name. I tried upgrading to 1.3 and this doesn't work
anymore  -- I assume it has something to do with not supporting regex
anymore.

So -- any ideas on how to go about accomplishing this in 1.3?

Check out the new CakePHP Questions site http://cakeqs.org and help others 
with their CakePHP related questions.


You received this message because you are subscribed to the Google Groups 
"CakePHP" group.

To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group 
at http://groups.google.com/group/cake-php?hl=en 


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en