%@ page import="com.opencms.core.*,java.util.*,org.opencms.jsp.*,org.opencms.file.*,org.opencms.flex.*" %><% // Create a JSP action element org.opencms.jsp.CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response); CmsFlexController controller = (CmsFlexController)request.getAttribute(CmsFlexController.ATTRIBUTE_NAME); CmsFlexCache cache = controller.getCmsCache(); // check online project if (cms.getRequestContext().currentProject().equals(cms.getCmsObject().readProject(CmsProject.ONLINE_PROJECT_ID))) { if (!cache.isEnabled()) { %>
The FlexCache is currently not enabled!
For the examples to work correctly, you have to enable the FlexCache as described on the page
Configuration options in this documentation.
The FlexCache is currently not enabled for the offline projects!
For the examples to work correctly, you have to view this documentation in the "online" project or to enable the FlexCache for the offline projects as described on the page
Configuration options in this documentation.