45.2 GET_CACHE_DATE Function
This function returns the date and time a specified application page was cached either for the user issuing the call, or for all users if the page was not set to be cached by user.
Syntax
FUNCTION GET_CACHE_DATE (
p_application_id IN NUMBER,
p_page_id IN NUMBER )
RETURN DATE;Parameters
| Parameter | Description |
|---|---|
p_application_id |
The identification number (ID) of the application. |
p_page_id |
The page number (ID). |
Example
The following example demonstrates how to use the
GET_CACHE_DATE function to retrieve the cache date and time for page 9 of the currently executing application. If page 9 is cached, the cache date and time is output using the HTP package. The page could have been cached either by the user issuing the call, or for all users if the page was not to be cached by the user.declare
l_cache_date date default null;
begin
l_cache_date := apex_page.get_cache_date(
p_application_id => :APP_ID,
p_page_id => 9 );
if l_cache_date is not null then
sys.htp.p('Cached on ' || to_char(l_cache_date, 'DD-MON-YY HH24:MI:SS'));
end if;
end;Parent topic: APEX_PAGE