// savePageInPermanentCache() as this one would clear out the old IDs
_permanentPageCache.setObjectForKey(currentPage, contextID);
}
else if (permanentCurrentPage != currentPage) {
WOApplication woapplication = WOApplication.application();
if (permanentSenderPage == currentPage && woapplication.permanentPageCacheSize() != 0) {
if (_shouldPutInPermanentCache(currentPage))
savePageInPermanentCache(currentPage);
}
else if (woapplication.pageCacheSize() != 0)
savePage(currentPage);