} catch (Exception e) {
cached = false;
}
if (cached) {
if (result.size() >= 11) {
TubeSearchModel model = new TubeSearchModel();
model.setLimit(10);
model.setPage(1);
model.prepareRecentView();
if (model.getListResult().size() > 0) {
result = model.getListResult();
}
cache.put(prefix, result);
}
}
}
if (!cached) {
TubeSearchModel model = new TubeSearchModel();
model.setLimit(10);
model.setPage(1);
model.prepareRecentView();
if (model.getListResult().size() > 0) {
result = model.getListResult();
}
cache.put(prefix, result);
}
return result;
}