Saturday, March 13, 2010

Oracle iStore - Clearing Cache

Understanding Cache : Cache is nothing but the compiled version of the JSP pages. All the JSP in the server are getting converted in to .java and .class file when compiled which is called as “Cache”. When you access the jsp files from the UI, the cache is getting invoked and not the JSP files.

When you modify an existing JSP files in Oracle iStore, the corresponding cache has to be cleared (deleted) to see the new changes. Clearing of cache is required even when you modify some of the .java files in iStore.

For 11i, the cache is stored under $COMMON_TOP/_pages, sometimes under
$COMMON_TOP/_pages/_oa__html, manual recompilation is not required to create the cache in 11i.

For R12, the cache is stored under $COMMON_TOP/_pages.
After clearing the cache, we have to recompile the JSP files manually since s_jsp_main_mode is set to justrun by default which is in turn updated in orion-web.xml.
To avoid manual compilation, the above parameter has to be set accordingly.

Caching clearance can be done from front end, steps as follows

Login as SYSADMIN Select "Functional Administrator" responsibility
Go to Core Services --> Caching Framework --> Tuning
Query the application (for example iStore) or by Name or code.
Select the component and clear the cache.

1 comment: