[TYPO3-core] RFC #12130: Improve performance of flashmessages
Rupert Germann
rupi at gmx.li
Tue Oct 6 15:02:18 CEST 2009
hi Francois,
Francois Suter schrieb:
> I agree that writing to the database is not optimal. I must say I hadn't
> noticed that TYPO3's "session" handling mechanism was purely
> database-based. I would store these messages in the PHP session.
done in the attached patch
> Actually I've been using flash messages in my custom apps for a long
> time. In my API I have a double set of methods: one for writing to the
> current queue and one for writing into the session queue.
>
> Now I agree that having a class to manage the queue is much better than
> having the work done by template.php. What we could now have is a method
> for storing to the PHP session. Then next time the message queue object
> is instantiated, it reads what's in the session, removes it from session
> and uses it to initialise the queue. Or maybe - to avoid instantiation -
> there could be a method to do that retrieval from session.
in v2 I moved the queue handling from template.php to class
t3lib_messageQueue.
better? ;-)
greets
rupert
More information about the TYPO3-team-core
mailing list