private function Biblio::getCache in Bibliography Module 7.3
Helper function to get cached values.
Parameters
$style_name:
array $options:
bool $skip_cache:
1 call to Biblio::getCache()
- Biblio::getText in includes/
biblio.controller.inc - Get the text, rendered using a Biblio style plugin.
File
- includes/
biblio.controller.inc, line 139
Class
- Biblio
- Biblio class.
Code
private function getCache($style_name, $options = array(), $skip_cache = FALSE) {
if ($skip_cache) {
return;
}
if (empty($this->cache)) {
return;
}
// Try to get the values from the cache.
$cache_id = md5(serialize(array(
$style_name,
$options,
)));
if ($this->cache_id != $cache_id) {
return;
}
return $this->cache;
}