You must use cache.ram but this is not guaranteed to work.
In a multi-threaded environment the web server decides which threads
to start/stop/kill.

On Oct 29, 4:39 pm, Arturo Filastò <a...@baculo.org> wrote:
> We have noticed that everything in models gets executed every time a
> page gets loaded.
>
> Is there a way in web2py to have varibles be persistent. For example
> when I instantiate a class I don't want to re-instantiate it every
> time a page is loaded. The same is true for database connections.
>
> Does the database get reinstantiated every time a user loads a page?
>
> - Art.

Reply via email to