Pages

Search This Blog

Wednesday, February 10, 2010

How to clear web cache in Oracle applications

Whenever there is anything added/changed to any OA component (PG, RG etc) / BC4J components (VO / EO / AMetc), Controller classes, the Apache server cache needs to be cleared so that the changes can be seen.

There are two ways to clear the web cache in Oracle Apache,

1. Bounce Apache (You can refer the following article in this blog to do that)
http://oracally.blogspot.com/2010/01/startingstopping-apache-in-oracle.html

2. Web cache can be cleared without bouncing Apache. To do that, do the following,

Get "Functional Administrator" responsibility>Click on "Functional Administrator" responsibility
Following screen would come up.




Click on "Core Services" tab> Click "Caching Framework" menu > Click "Global Configurations"> Following screen would come up.




Click on "Clear all Cache" button which would prompt you to confirm> Click yes to clear all cache.


Note: Clearing cache would impact performance because server needs to cache any page opened after this.

2 comments:

  1. Clearing Cache is not the same thing as bouncing Apache. Clearing the cache simply dumps the values of cached items (for example, an LOV). You might notice that these refresh themselves after a set amount of time.

    If you modify OAF code, it will not take effect until after Apache is bounced... It's the Apache cache that needs to be cleared, not the Framework Cache

    ReplyDelete
  2. Does anyone have a script to clear the cache automating the process?

    ReplyDelete

Followers

Contributors