cake-php
[Arriba] [Todas las Listas]

SaaS Y AppController

To: cake-php@xxxxxxxxxxxxxxxx
Subject: SaaS Y AppController
From: Eric Haskins <ehask71@xxxxxxxxx>
Date: Mon, 17 Jun 2013 05:53:26 -0700 (PDT)
Delivery-date: Mon, 17 Jun 2013 08:53:37 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=x-beenthere:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=lRSyY38LImM7Ued6VhTjcxvFfYEbCKCQqQ58WtXq9Co=; b=OBzxLV73Vxoay66Q05KAwNZFHrO6ZnnLCTml64uIQIepyQ/hQ4NsmDCeH4FKcc+2+M jCmHhUhZiYByrr7gzhU3Xb6y+Q/kZY5K/FJvBTTt/E8CQfRkCsqmX8XqiadGvUNOtbil oaeoeREuiqYCAoYK8W2FpQuedu/lupVov6+K7JN6aG2IrkfqMG4GcdlAaVxK1ZdrFE10 heYAiLk8uZbJ+zVrkahbdsZMx4jEy9OPMJYAcuZqpklpVitm5e/xu1PuXhopaIpDjrp2 1qk0mpK129K2GcniBuMJgCTaekCTVMOeWeE5PL6SIOrOvvXvquAwcwUDGtl9Kt3Syca6 R6KA==
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-beenthere:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; bh=lRSyY38LImM7Ued6VhTjcxvFfYEbCKCQqQ58WtXq9Co=; b=ITuuElD3Uig5qIi8PuX+pOk7lAn8RwvD+fAo8eKL8T/in0VE6iLRYwz4UkuS3cqOQ3 wn8hPXn1bHGnMI43YuuNomkLmS9NJ2RA0o+vdZ/wz0QtU0/9TDcBzugsAtS1TT4hxTo5 zFLgW+YURU7WD+8reEWw0vwVQsRZksrIYWa3SOcD1NfV+l9+NhvYq9TJJyUoNFjsnBBr mr7PTI5O/oYK32rUd0LJrt9D9ksU2YcJTLu8UDbTCaBjd8e8s0Y6eFwbKd8jE6SLUFPd LJwOiXefxTvDpSUwOLy9G3MRVlwyc/9ppX3+xQkPsN0wOKNmIzzbQis8AbZ2szJnEaxB PI6A==
Envelope-to: traductor@xxxxxxxxxxx
List-archive: <http://groups.google.com/group/cake-php>
List-help: <http://groups.google.com/support/>, <mailto:cake-php+help@googlegroups.com>
List-id: <cake-php.googlegroups.com>
List-post: <http://groups.google.com/group/cake-php/post>, <mailto:cake-php@googlegroups.com>
List-subscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:cake-php+subscribe@googlegroups.com>
List-unsubscribe: <http://groups.google.com/group/cake-php/subscribe>, <mailto:googlegroups-manage+1003367825667+unsubscribe@googlegroups.com>
Mailing-list: list cake-php@xxxxxxxxxxxxxxxx; contact cake-php+owners@xxxxxxxxxxxxxxxx
Reply-to: cake-php@xxxxxxxxxxxxxxxx
Sender: cake-php@xxxxxxxxxxxxxxxx
Tengo un *app estoy trabajando encima y me preguntaba si esto es el diseñado 
*behavior.   Tan habitual mis controladores extienden *AppController utilizo el 
*beforeFilter() para determinar el sitio la petición es puesto que y *setup el 
entorno *widgets,*auth *etc.

Mi preocupación es si puse un correo() en el *beforeFilter y llamar el *app consigo 
9 *emails para una petición. Tan *appcontroller -> *beforeFilter está siendo llamado 
9 tiempo.  Esto es *alot de elevado para un *SaaS *app. Considerando 4 consultas 
son corridas así que 36 total de consultas.... Es esto el esperado *behavior y es allí 
una manera mejor a poner todo el requerido *settings *etc. 


*Thx 
Eric

-- 
Gustarnos en *FaceBook *https://www.facebook.com/*CakePHP
nos Encuentra en *Twitter *http://*twitter.*com/*CakePHP

--- 
Recibiste este mensaje porque eres *subscribed al *Google Grupos "*CakePHP" grupo.
A *unsubscribe de este grupo y la parón que recibe *emails de él, enviar un *email a pastel-*php+unsubscribe@xxxxxxxxxxxxxxxx.
A correo a este grupo, envía *email a pastel-php@xxxxxxxxxxxxxxxx.
Visita este grupo en *http://grupos.*google.*com/Pastel/de grupo-*php.
Para más opciones, visita *https://grupos.*google.*com/Los Grupos/optan_fuera.


I have an app I am working on and I was wondering if this is the designed 
behavior.   As usual my controllers extend AppController I use the 
beforeFilter() to determine the site the request is for and setup the 
environment widgets,auth etc.

My concern is if I put a mail() in the beforeFilter and call the app I get 
9 emails for one request. So appcontroller -> beforeFilter is being called 
9 times.  This is alot of overhead for a SaaS app. considering 4 queries 
are run so 36 queries total.... Is this the expected behavior and is there 
a better way to setting all the required settings etc. 


Thx 
Eric

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to cake-php@xxxxxxxxxxxxxxxx.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


<Anterior por Tema] Tema Actual [Siguiente por Tema>