Using Telnet to Send Invalidation Requests

7-22 Oracle Fusion Middleware Administrators Guide for Oracle Web Cache invalidation, the cache you select is designated the invalidation coordinator, which propagates the invalidation request to other cache cluster members. If you did not configure the cluster to propagate invalidation, the cache you select is the only cache from which objects are invalidated.

3. In the Search Criteria section, select the search criteria:

■ Remove all cached objects: Select to remove all objects from the cache. ■ Enter exact URL for removal : Specify the URL of the objects to be invalidated. Include the complete path and file name. Note: Because Oracle Web Cache escapes the following characters, you can enter them in this field: ampersand , greater than sign , less than sign , double quotes , and single quotes . 4. Optionally, you can preview the list of objects to be invalidated to ensure that you are removing only the objects you want to remove. To preview the list of objects:

a. In the Action section, choose Preview list of objects that match invalidation

criteria .

b. Specify the Object Range:

– From: Enter the number representing the first object to be listed. Oracle Web Cache begins the count of objects with the number 0. – To: Enter the number of objects to be listed. If fewer objects than the number specified meet the invalidation criteria, Oracle Web Cache lists the URLs for only those objects that meet the crite- ria. If more objects than the number specified meet the invalidation criteria, Oracle Web Cache lists the URLs for the number of objects requested. It also returns the total number of objects that meet the invalidation criteria. To obtain the list of URLs for additional objects, send another preview request with a different From number that specifies the start of the next set of objects.

c. Click Submit.

Oracle Web Cache displays the Invalidation Preview Results message box, which lists the objects that meet the invalidation criteria. Oracle Web Cache Manager lists only those objects that are valid. Although the cache may contain objects that are expired or that have been invalidated, those objects are not listed. If the listed objects are for those to invalidate, continue with the next step. If they are not, modify the invalidation criteria and preview the list again.

5. In the Action section, select an option to specify how to process invalid objects:

■ Remove immediately: Oracle Web Cache marks objects as invalid and removes them immediately. A object is refreshed from the origin server when the cache receives the next request for it. ■ Remove objects no later than number time after submission: Oracle Web Cache marks objects as invalid and then refreshes them based on origin server capacity. Enter the maximum time in which the objects can reside in the cache. When you select this option, Oracle Web Cache applies heuristics to determine when is best time to no longer serve the document.

6. Click Submit.

Invalidating Content 7-23 Oracle Web Cache processes the invalidation request, and returns the Cache Cleanup Result dialog box which shows the invalidation status. The following figure shows the dialog box: In a cache cluster environment, if Invalidation requests sent to any cluster member will be propagated to all cluster members is enabled, Oracle Web Cache sends the invalidation request to one cluster member who acts as the invalidation coordinator . The coordinator propagates the invalidation request to other cluster members. When the invalidation has been completed for all cluster members, Oracle Web Cache returns a Cache Cleanup box that lists, for each cluster member, the cache name, the status of the invalidation request, and the number of objects invalidated. For more information, see Section 3.6.5 for information about enabling invalidation propagation.

7.7.2.2 Submitting Advanced Invalidation Requests

To send an advanced invalidation request using Oracle Web Cache Manager:

1. In the navigator frame, select Operations Advanced Content Invalidation.

The Advanced Content Invalidation page appears in the right pane.

2. From the For Cache list, select a cache. The list displays multiple caches only if

you configured a cache cluster.

3. In the Search Criteria section, select the search criteria:

■ URL Path Prefix: Required. Specify the path prefix of the objects to be invalidated. The path prefix must begin with http|https:host_ name :portpathfilename or with and end with . host_name :port is optional. You can also specify the site host name and port in the Host Name field. The prefix is interpreted literally, including reserved regular expression characters. These characters include periods ., question marks ?, asterisks , brackets [], curly braces {}, carets , dollar signs , and backslashes \. Note: Because Oracle Web Cache escapes the following characters, you can enter them in the search criteria fields: ampersand , greater than sign , less than sign , double quotes , and single quotes .