/** * magic method for unserialize(), with this method you can cache the mbox class */ public function __wakeup() { // if cache is stall selectFolder() rebuilds the tree on error parent::__wakeup(); }