private function _updateCacheState($thread)
{
if (is_array($thread)) {
foreach ($thread as $id) {
$key = 'prefix_' . $this->_forum_id . '_' . $id;
$prefix = $this->_cache->get($key, $GLOBALS['conf']['cache']['default_lifetime']);
if ($prefix) {
$this->_cache->set($key, $prefix + 1);
}
}
} else {
$key = 'prefix_' . $this->_forum_id . '_' . $thread;
$prefix = $this->_cache->get($key, $GLOBALS['conf']['cache']['default_lifetime']);
if ($prefix) {
$this->_cache->set($key, $prefix + 1);
} else {
$this->_cache->set($key, 2);
}
}
}