Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19637

publicAPI : View cache is not cleared when making a new version of an object

    XMLWordPrintable

Details

    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 )
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours, 30 minutes
                7h 30m