50.11 PURGE_CACHE Procedure Signature 2

This procedure purges the region cache of the specified application, page, and region Static ID.

Syntax

APEX_REGION.PURGE_CACHE (
    p_application_id       IN   NUMBER       DEFAULT apex_application.g_flow_id,
    p_page_id              IN   NUMBER       DEFAULT NULL,
    p_static_id            IN   VARCHAR2     DEFAULT NULL,
    p_current_session_only IN   BOOLEAN      DEFAULT FALSE );

Parameters

Parameter Description
p_application_id ID of the application where the region caches should be purged. Defaults to the current application.
p_page_id ID of the page where the region caches should be purged. If no value is specified (default), all regions of the application are purged.
p_static_id Static ID of a specific region on a page. If no value is specified (default), all regions of the application are purged.
p_current_session_only Specify true if you only want to purge entries that where saved for the current session. Defaults to FALSE.

Example

This example purges session-specific region cache.

BEGIN
     APEX_REGION.PURGE_CACHE (
        p_page_id              => 1,
        p_static_id            => 'group-region',
        p_current_session_only => true );
END;