Details
-
Bug
-
Resolution: Fixed
-
High
-
5.0.0-dev
-
None
Description
Hi
View cache is not cleared when publishing a new version of an object
Steps to reproduce
In admin2
#1 View an article named "TB2" in admin2 ( using the Details tab ) #2 Change object using code: $draftVersion2 = $contentService->createContentDraft( $location->contentInfo ); $contentUpdate = $contentService->newContentUpdateStruct(); $contentUpdate->setField( 'title', 'TB2 Updated' ); // Update the content draft $draftVersion2 = $contentService->updateContent( $draftVersion2->getVersionInfo(), $contentUpdate ); $contentVersion2 = $contentService->publishVersion( $draftVersion2->getVersionInfo() ); #3 Show parent node of article in admin2 #4 notice that name has been updated accordingly ( correct) #5 View the article itself in admin2 #6 Notice that title is still "TB2" ( WRONG ) #7 Clear cache for node #8 View the article in admin2 again #6 Notice that title is now "TB2 Updated" ( Correct )