Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function SchemaCache::__construct

Constructs a SchemaCache object.

Parameters

$cid: The cid for the array being cached.

$bin: The bin to cache the array.

Overrides DrupalCacheArray::__construct

File

includes/bootstrap.inc, line 3389

Class

SchemaCache
Extends DrupalCacheArray to allow for dynamic building of the schema cache.

Code

public function __construct() {
 // Cache by request method.
 parent ::__construct ('schema:runtime:' . ($_SERVER['REQUEST_METHOD'] == 'GET'), 'cache');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.