Re: Performance question

2008-05-27 Thread jarmstrong
Grant Cox-2 wrote: > > 3. Put some more ram in that thing! $50 for a gig or so is worth how > much of your development time? > I second that 10k-20k records really arent much unless as mentioned you are binding to many records when you do not need to be. Also you should turn on debugging/m

Re: CakePHP and Subscription Based Billing

2008-05-22 Thread jarmstrong
jonknee wrote: > > I just wrote PayFlow classes in PHP and Python. Amazingly they only > had built-in support for .NET and Java, everything else goes over > HTTPS and they provide no code to get started. Not a tough thing to > write, but it seemed pretty odd considering all the tools > Authoriz

Re: CakePHP and Subscription Based Billing

2008-05-21 Thread jarmstrong
Good luck with the project. I would read up on PCI if you are not familiar. Make sure to choose a gateway that makes your life easy. https://www.pcisecuritystandards.org/ - J -- View this message in context: http://www.nabble.com/CakePHP-and-Subscription-Based-Billing-tp17375977p17396652.htm

Re: Session db - format

2008-01-13 Thread jarmstrong
Look at the php serialize functions. http://us2.php.net/serialize http://us2.php.net/manual/en/function.unserialize.php Cronet wrote: > > > Hi, > > it's more a general question, not directly cake related. > > > If I store a Session in my db, the "data" field looks like: > > Config|a:3:{s

Re: Using 1 cake app to power multiple sites

2008-01-10 Thread jarmstrong
My recommendation is as follows. You build a handler in your core config file + the examples in the bakery to put together a setup that uses different database configurations per domain. The number 1 issue i see with this is getting your caching to work properly. Previously I did not see a way wi

Re: Accelerating cakePHP

2007-12-17 Thread jarmstrong
I have been researching Resin/Quercus for my production apps but I have been running into many issues within the CakePHP dbo abstraction layer. I have tried stepping through it but everything keeps pointing back to the MySQL JDBC driver interacting differently than the native php mysql module. Ri

Re: Model Queries inside Model Objects?

2007-12-14 Thread jarmstrong
While most people will probably tell you not to I do believe this is completely possible. You can always loadModel(); $model=$new Model(); $model->findByValue(); oracle411 wrote: > > > Hi Guys, > > I currently validating from my controllers using Model findBy* > methods. Usually using many

Session, destruction (not happening?)

2007-12-14 Thread jarmstrong
Hi everyone, So I am seeing that the cake_sessions table is not getting automatically cleaned up by cake for the stale session variables. I have created a shell process "ClearSessions" which is run in a cron job and clears out session that have persissted longer than what I allow. Does anyone ha

Re: 1.2 Session variable disappears

2007-12-14 Thread jarmstrong
What security level do you have your cakeapp running at? Many people have had issues with high security if they run any requestAction calls that would trigger a new session and would appear that you are losing your set variables (because the session gets recreated). Also turn on debugging and wat

Re: RequestAction parameters

2007-12-14 Thread jarmstrong
You can get away with just adding the arguments after the function name using slashes to split each argument. You can do something like this: requestAction('archives/index/'.$i_love_Cake); ?> -- View this message in context: http://www.nabble.com/RequestAction-parameters-tp14339603p14339776.

PHP on Java (Resin)

2007-12-06 Thread jarmstrong
Has anyone looked into using Caucho's php inside a java servlet? It looks like they get really good gains running Drupal in this manner. The main thing I see with CakePHP from my initial tests is that any place where an instance of a class is created dynamically the intepriter doesn't handle it c

Re: Xml layout name

2007-12-05 Thread jarmstrong
I believe that is so you can have the same layout name with different actual layouts. For instance layout='newsfeed' or 'productlist', you might want a Html, Rss, and XML output. Andreas-70 wrote: > > > I used this one and it works. > > $this->layoutPath = 'xml'; > $this->layout = 'default'

Caching, way to globally disable on HTTPS detect?

2007-11-27 Thread jarmstrong
Does anyone have a good example or concept of how someone might easily enable/disable caching based on if HTTPS is enabled/disabled? Another option in my mind might be an extension to the Caching mechanism that caches the HTTPS objects seperately from HTTP. The reason I need this is the links/i

Re: YAMMY!: feed your migrations faster

2007-11-07 Thread jarmstrong
I just realized i might have said yammy when i really meant migrations. jarmstrong wrote: > > Gwoo, > > i understand the shell handling. I was asking more for an automated > application based update to the schema when the app notices that the DB it > is pointed at i

Re: YAMMY!: feed your migrations faster

2007-11-07 Thread jarmstrong
Gwoo, i understand the shell handling. I was asking more for an automated application based update to the schema when the app notices that the DB it is pointed at is out of date. For instance, new version is developed, tests are run, staging is approved. Then when it is migrated from dev->stagin

Re: YAMMY!: feed your migrations faster

2007-11-07 Thread jarmstrong
Speaking of future enhancements. Is there a current feature or easy way to add in handling that will generate the entire schema from version X to Y or simply do the update the first time the app is run against a schema that is out of date or doesnt have any tables? I have seen this in some other