function image_url($file, $option = array()) { $value = serialize($option); $id = 'image_fuel' . md5($file . $value); $data = cache($id); if (!$data) { cache($id, $option); } $name = FileHelper::name($file); $ext = FileHelper::ext($file); return base_url() . "/imagine/" . $name . "={$id}{$ext}"; }