protected function DrupalCacheArray::persist

cis7 bootstrap.inc protected DrupalCacheArray::persist($offset, $persist = TRUE)
cle7 bootstrap.inc protected DrupalCacheArray::persist($offset, $persist = TRUE)
elmsmedia7 bootstrap.inc protected DrupalCacheArray::persist($offset, $persist = TRUE)
icor7 bootstrap.inc protected DrupalCacheArray::persist($offset, $persist = TRUE)
meedjum_blog7 bootstrap.inc protected DrupalCacheArray::persist($offset, $persist = TRUE)
mooc7 bootstrap.inc protected DrupalCacheArray::persist($offset, $persist = TRUE)

Flags an offset value to be written to the persistent cache.

If a value is assigned to a cache object with offsetSet(), by default it will not be written to the persistent cache unless it is flagged with this method. This allows items to be cached for the duration of a request, without necessarily writing back to the persistent cache at the end.

Parameters

$offset: The array offset that was requested.

$persist: Optional boolean to specify whether the offset should be persisted or not, defaults to TRUE. When called with $persist = FALSE the offset will be unflagged so that it will not be written at the end of the request.

2 calls to DrupalCacheArray::persist()

File

includes/bootstrap.inc, line 393
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.

Code

protected function persist($offset, $persist = TRUE) {
  $this->keysToPersist[$offset] = $persist;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.