Re: CakePHP + memcached weird results

2011-01-14 Thread Adrian Arnautu
Hi to all, The CakePHP dev team was kind enough to work around this issue, a fix was added, here's the commit https://github.com/cakephp/cakephp/commit/5f612b78336547b921237da6018ba80db303d188 Thanks guys and thank you Andy, Adrian On Thu, Jan 13, 2011 at 2:54 PM, Adrian Arnautu wrote:

Re: CakePHP + memcached weird results

2011-01-13 Thread Adrian Arnautu
ack to you. Thank you for your help, Adrian On Thu, Jan 13, 2011 at 2:14 PM, AD7six wrote: > > > On Jan 13, 1:01 pm, Adrian Arnautu wrote: > > Hi, > > > > I think I find the problem. > > The keys like default_cake_sessions default_aros_acos default_acos

Re: CakePHP + memcached weird results

2011-01-13 Thread Adrian Arnautu
ome memcache key/value. And of couse, if I'll use the file cache probably it will be rewritten each and every time, I haven't test this. So far I don't know why that subtraction is there, why it is needed the differernce as a result if someone can illuminate me, please do. Thank you, Adri

CakePHP + memcached weird results

2011-01-12 Thread Adrian Arnautu
Hi to all, I activated the Memcached default support with this config Cache::config('default', array( 'engine' => 'Memcache', 'duration'=> 9577829600, 'servers' => array( '127.0.0.1:11211' ),

Re: Cake source code optimization

2011-01-11 Thread Adrian Arnautu
I'm not tracking the dev progress, could you tell me when the 2.0 release is to be scheduled? Thanks, Adrian On Tue, Jan 11, 2011 at 1:10 AM, euromark wrote: > thats what i remarked at the end :) > i suppose it does > > as for the other bottlenecks we will have to wait for 2.0 (and lazy > loadin

Cake source code optimization

2011-01-10 Thread Adrian Arnautu
Hi to all, I've been developing a Cake App for the past months and now I'm at the point when some code optimization is required. Did any of you made some Cake core lib optimization? If so, could you share some tips and point me where to look. Of course, the bottlenecks could be in my database or

Re: UpdateAll strange behaviour

2010-12-02 Thread Adrian Arnautu
f. Close to the truth but not enough for me. Is there any other solution? How can I disable that extra query for retrieving the PKs? Thank you, Adrian On Thu, Dec 2, 2010 at 12:09 PM, Adrian Arnautu wrote: > Hi to all, > > I'm currently encountering some strange behaviour when I'

UpdateAll strange behaviour

2010-12-02 Thread Adrian Arnautu
Hi to all, I'm currently encountering some strange behaviour when I'm using updateAll method. I'll explain my database schema Table A - id as primary key - b_fk as foreign key to table B - bar as another field Table B - id as primary key - foo as a column Table C - id as primary key - a_

Re: ActiveRecord getting resource instead of dataset

2010-11-19 Thread Adrian Arnautu
either. Thank you for your help, Adrian On Fri, Nov 5, 2010 at 7:52 PM, Adrian Arnautu wrote: > Hi, > > Thank you for reply. > > I already limit my results but this is not the issue I raise. :) > Basically, I want to do it 'old school', something like: > $resou

Re: how to disable security component for a single action?

2010-11-08 Thread Adrian Arnautu
Hi, Try this $this->Security->validatePost = false or if you have a blackHoleCallback put the exception action there. On Mon, Nov 8, 2010 at 12:50 PM, massl wrote: > > Just in case someone finds this at google (like me): > > Don't forget to add another = after $this->action. > Or better: > > if

Re: ActiveRecord getting resource instead of dataset

2010-11-05 Thread Adrian Arnautu
So far I didn't find anything in docs, looks like I'll have to dig in the source code for the answer. Hope that there is a way to do this. Cheers, Adrian On Fri, Nov 5, 2010 at 6:18 PM, cricket wrote: > On Fri, Nov 5, 2010 at 4:19 AM, Adrian Arnautu > wrote: > > He

ActiveRecord getting resource instead of dataset

2010-11-05 Thread Adrian Arnautu
Hello to everyone, Is there a way to get a resource and then fetch a row at a time from it instead of getting the whole rows in one structure? For a small dataset it's relatively fine, but when this dataset is growing (for example, you want to generate a CSV having ~ 5-6k rows or maybe more) it lo

Re: Learn CakePHP

2010-10-29 Thread Adrian Arnautu
Hi, How much do you know about MVC pattern? How much have you worked with a MVC framework? And how much do you know about Web development? If you know Rails it will be easier to pick up Cake. :) Personally I needed proximately 1 week and a half to be up and ready for almost any situation I could

Re: cakephp requirements question

2010-10-24 Thread Adrian Arnautu
Hello, You might want to check if your apache works with php5. Also you may want to activate the mod_rewrite. A basic CakePHP env consists of - an webserver (apache or something else) - php5 - mod_php5 (this depends of what webserver you use) - mod_rewrite (although it can easily work without it)

Controller render() issue

2010-10-22 Thread Adrian Arnautu
Hello, I'm facing a strange problem. In my controller I call $this->render() with a particular layout and then I use the default layout. Example: $this->set('foo', $this->render('bar', 'other_layout'); $this->layout = 'default'; I know it's wrong and it's not the MVC way, the rendering part shoul

Re: How can i Optimize i18n ?

2010-10-19 Thread Adrian Arnautu
Oh, now I see that you gave us the output, my bad :). Thank you. On Tue, Oct 19, 2010 at 8:06 PM, Adrian Arnautu wrote: > Hi, > > I've not done this yet, I'm thinking to do it (I have also a multilanguage > app that needs to be fast), cache the output. > I&#x

Re: How can i Optimize i18n ?

2010-10-19 Thread Adrian Arnautu
Hi, I've not done this yet, I'm thinking to do it (I have also a multilanguage app that needs to be fast), cache the output. I'm not saying to cache every __() result, that will be childish :). Maybe your content is in an element, if you can cache it, do it. Maybe you have content that isn't "so

Re: Cakephp blank page on Ubuntu PHP 5.3.3

2010-10-16 Thread Adrian Arnautu
gt; older 1.2.5, but probably they don't stress the system the same way > your app does. > > Have you tried to set up a clean installation of cakephp 1.3.4? > > On Oct 15, 10:33 pm, Adrian Arnautu wrote: > > Hi, > > > > Yes, I have a DB installed and by 'worki

Re: Cakephp blank page on Ubuntu PHP 5.3.3

2010-10-15 Thread Adrian Arnautu
Hi, Yes, I have a DB installed and by 'working fine from terminal' you actually mean connecting successfully to the database server with a client or testing successfully the connection in a separate script, yes, it's working fine. The PHP database driver is installed on the system. As a temporary