-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#12716 Update version_ts for all page versions. Refresh all page vers… #13076
Conversation
…ions from cache.
private static void updateHTMLPageVersionTS(String id) throws DotDataException, DotSecurityException { | ||
Identifier identifier = APILocator.getIdentifierAPI().find(id); | ||
List<Contentlet> allContentletVersions = APILocator.getContentletAPI() | ||
.findAllVersions(identifier, APILocator.getUserAPI().getSystemUser(), false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't the right method - this pulls all old versions of a piece of content which can be in the 100's . We need to pull a list of ContentletVersionInfos for a given piece of content
@Override | ||
protected List<ContentletVersionInfo> findAllContentletVersionInfos(final String identifier)throws DotDataException, DotStateException { | ||
|
||
HibernateUtil dh = new HibernateUtil(ContentletVersionInfo.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure but shouldn't include cache here? if not apply nvm my comment
.findContentletByIdentifier(ident.getId(), false, languageId, APILocator.systemUser(), false); | ||
IHTMLPage htmlPage = APILocator.getHTMLPageAssetAPI().fromContentlet(content); | ||
PageServices.invalidateAll(htmlPage); | ||
List<Contentlet> cons = APILocator.getContentletAPIImpl().findContentlets(Lists.newArrayList(inodes)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename it to contenlets or contentList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
…ions from cache.