$param['img']);
$key = $this->build_key(__CLASS__,$param);
$GLOBALS['cache']->set_dir(APP_ROOT_PATH."public/runtime/data/".__CLASS__."/");
$image_str = $GLOBALS['cache']->get($key);
if($image_str === false)
{
$img = $param['img'];
$img_path = str_replace("./",get_domain().APP_ROOT."/",$img);
require_once APP_ROOT_PATH."system/utils/es_image.php";
$imagec = new es_image();
$info = $imagec->getImageInfo($img);
if($info['mime']=='image/png')
{
$image_str = "";
}
else
{
$image_str = "
";
}
$GLOBALS['cache']->set_dir(APP_ROOT_PATH."public/runtime/data/".__CLASS__."/");
$GLOBALS['cache']->set("PAGE_IMAGE_".$img,$image_str);
}
return $image_str;
}
public function rm($param)
{
$key = $this->build_key(__CLASS__,$param);
$GLOBALS['cache']->set_dir(APP_ROOT_PATH."public/runtime/data/".__CLASS__."/");
$GLOBALS['cache']->rm($key);
}
public function clear_all()
{
$GLOBALS['cache']->set_dir(APP_ROOT_PATH."public/runtime/data/".__CLASS__."/");
$GLOBALS['cache']->clear();
}
}
?>