.getCurrentHourPublishedPages()) {
if (page.getState().equals(PageState.APPROVED)) {
logger.info("Found published " + page.getFriendlyURL());
getBusiness().getSystemService().getPageCache().remove(
page.getFriendlyURL());
getBusiness().getMessageQueue().publish(new PageMessage(
Topic.PAGE_CACHE_CLEAR, page.getFriendlyURL(), page.getId()));
}
}
for (PageEntity page : getDao().getPageDao()
.getCurrentHourUnpublishedPages()) {
if (page.getState().equals(PageState.APPROVED)) {
logger.info("Found unpublished " + page.getFriendlyURL());
getBusiness().getSystemService().getPageCache().remove(
page.getFriendlyURL());
getBusiness().getMessageQueue().publish(new PageMessage(
Topic.PAGE_CACHE_CLEAR, page.getFriendlyURL(), page.getId()));
}
}
}