Home > Contents > Index >
ICS.isCacheable
Indicates whether the specified page can be cached.
Syntax
public boolean isCacheable(String pagename)Parameters
pagename
- Specify the name of the page to check. Specify
null
to check the current page.
Description
Use the
isCacheable
method to determine whether a page can be cached. Note that a page can disable its own cache at any time based on errors or other factors.You can call
isCacheable
at any time when evaluating pages, though the boolean value it returns may not be the same between calls.Returns
Returns
true
if
the page can be cached andfalse
if a page cannot be cached. (The page'scacheinfo
controls whether it can be cached.)
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.