Yes, all of the model files are run on every request, and when you download 
an image via the download function, that will generate another request. If 
you don't need to apply access controls to the image downloads, you can 
upload them into the 'static' folder instead of the 'uploads' folder and 
then server them directly from the 'static' folder, which will not generate 
a new request or run the models (I believe that's a faster way to serve the 
images anyway).
 
If you've got lots of model code and don't want to run it all on every 
request, there are various strategies for dealing with that, such as moving 
some of the code to modules or controllers, or using the new conditional 
models functionality.
 
Anthony

On Tuesday, June 21, 2011 11:12:29 PM UTC-4, toan75 wrote:

> Hi all,
>
> The model will be reloaded one time on each request?
> In my application, it's reload one time more when using the download image? 
> It's correct?
> How i can do for the model reload only one time?
>
> Thanks. 

Reply via email to