[OGo-Developer] click-to-dial & Asterisk
Helge Hess
developer@opengroupware.org
Mon, 10 Dec 2007 14:26:11 +0100
On 10.12.2007, at 14:18, Sebastian Reitenbach wrote:
> Well, the -sleep, -awake, ... stuff I also not yet understood, but
> at least I understand, that it is not recommended to use the page
> cache.
-awake is mostly useless, but -sleep is called when the component
object is not used by SOPE anymore (the current request has been
processed). Hence its a good place to reset all transient state of the
component (self->item is the classic).
This happens much earlier than the actual component deallocation. Or,
if the component is cached somewhere, eg in the persistent page or in
the navigation, its not deallocated at all.
Basically what the method name says: component go to 'sleep'. Keep
what you need to remember, but free all stuff which can be
reconstructed w/o effort.
Helge
--
Helge Hess
http://www.helgehess.eu/