From: <sh...@ru...> - 2004-12-16 21:41:05
|
Hi, Does anyone know of a way to disable instantiation of the (Apache::SessionX) session object for each pagekit request? I have an application that does not use session at all, but each page request incurs the performance hit of instantiating one of these and loading data off disk or off DB. Perhaps a better solution would be "lazy" instantiation of SessionX - only instantiate it on the first call to $model->session. That way, if any request does not require access to the session, it will not incur the startup cost, without the programmer having to actually think about this. (Instantiating a session can be slow because it means loading data from disk or DB.) So in short: - Can I manually disable instantiation of session if I don't use it? (Or is pagekit using it internally for some reason?) - Could PageKit be made a little smarter in order to eliminate my reason for considering that option? thanks, shimon. |