public function DrupalCacheArray::__destruct

Destructs the DrupalCacheArray object.

Archivo

drupal-7.x/includes/bootstrap.inc, line 438
Functions that need to be loaded on every Drupal request.

Class

DrupalCacheArray
Provides a caching wrapper to be used in place of large array structures.

Código

public function __destruct() {
  $data = array();
  foreach ($this->keysToPersist as $offset => $persist) {
    if ($persist) {
      $data[$offset] = $this->storage[$offset];
    }
  }
  if (!empty($data)) {
    $this->set($data);
  }
}