My Oracle Support Banner

Caching Pitfalls When Rendering Assets That Use Dimensions (Translations) (Doc ID 1529583.1)

Last updated on APRIL 16, 2021

Applies to:

Oracle WebCenter Sites - Version 7.6.0 and later
Information in this document applies to any platform.

Symptoms

A cached page is not updated when a new translation of an asset is created which would be used by the page (and be a dependency) if it existed at the time the page was rendered.

example scenario:
    a) Template RenderLocalContent renders particular content depending on the locale.
           e.g when the page is called with the French locale, the french translation of the asset is rendered:
                - http://examplehost:8080/sites/Satellite?pagename=RenderLocalContent&c=Content_C&cid=1234567890123&locale=fr_FR
    b) RenderLocalContent falls back to the default locale content (primary asset) if no translation of that content exists.
           e.g. Suppose en_US is the primary asset.  If no fr_FR translation exists, the en_US asset is loaded and rendered.
    c) Now the rendered page is cached.
           e.g.  The page that should be the French version of the page is cached with the US English version of the content, since the French version did not exist at the time the page was rendered.
                   - So, pagename=RenderLocalContent&c=Content_C&cid=1234567890123&locale=fr_FR is cached with en_US content.
    d) This causes an issue when newly created translations of assets are made, as they are not reflected in the page, until the primary asset has been updated, or the page cache has been flushed.
           e.g. Even after a fr_FR translation of the primary asset (en_US) is made, the page still returns the previously cached content.
                  - pagename=RenderLocalContent&c=Content_C&cid=1234567890123&locale=fr_FR returns the previously cached en_US content.

Changes

 

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
Changes
Cause
Solution


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