defaultWakeup example

public function __sleep() {
    $vars = $this->defaultSleep();
    // Do not serialize static cache.     unset($vars['history']$vars['index']$vars['lastPostData']$vars['forumChildren']$vars['forumStatistics']);
    return $vars;
  }

  /** * {@inheritdoc} */
  public function __wakeup() {
    $this->defaultWakeup();
    // Initialize static cache.     $this->history = [];
    $this->lastPostData = [];
    $this->forumChildren = [];
    $this->forumStatistics = [];
    $this->index = NULL;
  }

}
Home | Imprint | This part of the site doesn't use cookies.