# |
Aug 7th 2008, 10:14 |
jonathan_ |
so you queries are append with that condition |
# |
Aug 7th 2008, 10:14 |
TommyO |
like I just added this line: $queryData['conditions'] = array_merge(array($this->alias . '.active' => 1), $queryData['conditions']); |
# |
Aug 7th 2008, 10:14 |
jonathan_ |
ok |
# |
Aug 7th 2008, 10:13 |
TommyO |
right |
# |
Aug 7th 2008, 10:13 |
TommyO |
jonathan_: it doesn't. it can help in controlling your query logic |
# |
Aug 7th 2008, 10:13 |
jonathan_ |
i see |
# |
Aug 7th 2008, 10:13 |
Lemon|work |
for optmizing |
# |
Aug 7th 2008, 10:13 |
Lemon|work |
he meant that beforeFilters help in the development time |
# |
Aug 7th 2008, 10:13 |
Lemon|work |
nothing |
# |
Aug 7th 2008, 10:12 |
jonathan_ |
@TommyO how does the beforeFilters callback help performance? |
# |
Aug 7th 2008, 10:12 |
TommyO |
was gonna say php/apache make up a part of that |
# |
Aug 7th 2008, 10:12 |
Lemon|work |
but thats on my laptop and php is slow on it |
# |
Aug 7th 2008, 10:11 |
Lemon|work |
250% speed difference between a cold start and a hot start |
# |
Aug 7th 2008, 10:11 |
Lemon|work |
i benchmarked cake today though |
# |
Aug 7th 2008, 10:11 |
TommyO |
but yeah |
# |
Aug 7th 2008, 10:11 |
TommyO |
beforeFilters() are a huge help |
# |
Aug 7th 2008, 10:10 |
Lemon|work |
so that will be alot of work optimizing everything |
# |
Aug 7th 2008, 10:10 |
Lemon|work |
my app has 150 models |
# |
Aug 7th 2008, 10:10 |
Lemon|work |
but to give you a perspective |
# |
Aug 7th 2008, 10:09 |
Lemon|work |
yeah i'm doing that atm |
# |
Aug 7th 2008, 10:09 |
TommyO |
err... performance boost |
# |
Aug 7th 2008, 10:09 |
TommyO |
Lemon|work: but you'll get a much better performance hit by tightening up your finds. limiting to only fields you need, etc |
# |
Aug 7th 2008, 10:09 |
Lemon|work |
i should look into caching translated views |
# |
Aug 7th 2008, 10:09 |
Lemon|work |
i18n, paths and models |
# |
Aug 7th 2008, 10:09 |
Lemon|work |
atm the only cache i have is the defualt caching files |
# |
Aug 7th 2008, 10:08 |
TommyO |
Lemon|work: xcache is a RAM caching engine, no? tha will be significantly faster than disk IO, assuming you're actually doing heavy cacheing |
# |
Aug 7th 2008, 10:05 |
FunkyWeasel |
Unfortunately I think I reverted something bad in my fiddlings, now I'm getting: "Error: Database table cake_app_models for model AppModel was not found." |
# |
Aug 7th 2008, 10:05 |
FunkyWeasel |
Found a solution to that recursive model definition - redefine the recursion of the model refered to as an extension, point relationship at that. Job done. |
# |
Aug 7th 2008, 10:04 |
Lemon|work |
for example xcache |
# |
Aug 7th 2008, 10:03 |
Lemon|work |
will there be a noticable performance increase if i use a non default file storage engine for caching? |
# |
Aug 7th 2008, 10:02 |
Eddie_CRO |
) |
# |
Aug 7th 2008, 10:02 |
nymacro |
quick question: if Auth component hashes the password automagically on save, why would it not be doing it for an edit action, when it does for a add |
# |
Aug 7th 2008, 10:02 |
Eddie_CRO |
'named' |
# |
Aug 7th 2008, 10:02 |
Eddie_CRO |
aaaaa |
# |
Aug 7th 2008, 10:02 |
Eddie_CRO |
i tried through $this->params['id'] but is not there |
# |
Aug 7th 2008, 10:01 |
Eddie_CRO |
how do i get that id 1? |
# |
Aug 7th 2008, 10:01 |
Eddie_CRO |
if i use url /search/id:1 |
# |
Aug 7th 2008, 10:01 |
Eddie_CRO |
a question |
# |
Aug 7th 2008, 10:01 |
Eddie_CRO |
now |
# |
Aug 7th 2008, 10:01 |
Eddie_CRO |
TommyO, i'm bit confused |
# |
Aug 7th 2008, 09:55 |
TommyO |
*meant |