{
if ($id == false)
{
$id = $this->
_makeId($view, $method);
}
$data = $this->cache->get($id);
$locktest = new stdClass;
$locktest->locked = null;
$locktest->locklooped = null;
if ($data === false)
{
$locktest = $this->cache->lock($id, null);
if ($locktest->locked == true && $locktest->locklooped == true)
{
$data = $this->cache->get($id);
}
}
if ($data !== false)
{
$data = unserialize(trim($data));
if ($wrkarounds === true)
{
}
else
{
echo (isset($data)) ? $data : null;
}
if ($locktest->locked == true)
{
$this->cache->unlock($id);
}
return true;
}
if (method_exists($view, $method))
{
if ($locktest->locked == false)
{
$locktest = $this->cache->lock($id);
}
ob_start();
ob_implicit_flush(false);
$view->$method();
$data = ob_get_contents();
ob_end_clean();
echo $data;
$this->cache->store(serialize($cached), $id);
if ($locktest->locked == true)
{
$this->cache->unlock($id);
}
}
return false;
}