My Oracle Support Banner

Unable to See Content Updates Immediately in Content Presenter Based on Results of a Query (Doc ID 2460960.1)

Last updated on JANUARY 14, 2021

Applies to:

Oracle WebCenter Portal - Version 12.2.1.0.0 to 12.2.1.3.0
Information in this document applies to any platform.

Symptoms


ACTUAL BEHAVIOR

Changes done to content data files are not reflected in Content Presenter task flow based on Results of a Query when updating the content data files outside of WebCenter Portal.

Enabled cache sweeper per the following documentation but content is not refreshed immediately.


Fusion Middleware Administering Oracle WebCenter Portal
6 Managing Connections to Oracle WebCenter Content Server
6.7.4.1 Modifying Oracle WebCenter Content Server's Contributor Data Files

 

Per the above documentation:

In some cases you may want to modify WebCenter Content Server's contributor data files directly through WebCenter Content Server. This operation is completely supported. However, if a contributor data file is being modified through a method other than using WebCenter Portal, a running WebCenter Portal page that also uses the same data file will not immediately see those updates. This is due to the WebCenter Portal page using Content Presenter to display the contents of the data file while WebCenter Portal is using the cached version of the data file. Fortunately, there is a way to configure the cache so that changes like this are picked up quickly and automatically.

 

EXPECTED BEHAVIOR

Expect to see the changes immediately after the Cache Invalidation Interval set in the WebCenter Portal Content Repository connection.


STEPS

The issue can be reproduced at will with the following steps:

  1. Enable the cache sweeper utility per the following documentation:

    Fusion Middleware Administering Oracle WebCenter Portal
    6 Managing Connections to Oracle WebCenter Content Server
    6.7.4.2 Modifying Oracle WebCenter Content Server's Cache Invalidation Interval

    e.g, set the Cache Invalidation Interval to 2.


  2. Create a Portal with a Content Presenter based on Results of a Query.

    • Connect to WebCenter Portal.

    • Create a new portal.

    • Create a new page in the portal.
    • Edit the page and add a content presenter with the following settings:

      • Select 'Results of a query' as the 'Content Source' and 'All content Types' or 'IDC:GlobalProfile' as 'Content Type'.

      • Set 'Limit Results' as 5. Select 'dInDate descending' as Sort Order.

      • Then click 'Preview Results' to see the latest 5 content items from WebCenter Content.

      • Then click 'Preview Results' to see the latest 5 content items from WCC.
        You should see the expected content.

      • Select default template (List View).

      • Save the changes.

    • View the page and confirm you can see the expected content.

    • Do not close this browser window.


  3. Add a new contribution data file using Content Server UI.


  4. Go back to WebCenter Portal.

    • View the page with the content presenter.
      Content is still not updated.

    • Navigate to another page and get back still doesn't shows the changes.

    • Waited for long time and content was not updated.

    • Sometimes editing the page shows the updated content.

    • Sometimes doing re-login shows the correct updated content and sometimes it does not.




Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.