Catch
additional
Struct (ordered)
Pattern
string<cfcache [action="string"] [key="string"] [id="any"] [throwonerror="boolean"] [name="string"] [metadata="string"] [value="any"] [cachename="string"] [username="string"] [password="string"] [protocol="string"] [timespan="timespan"] [idletime="timespan"] [directory="string"] [cachedirectory="string"] [timeout="any"] [expireurl="string"] [port="number"]>[</cfcache>]
Documentation
stringSpeeds up page rendering when dynamic content does not have to be retrieved each time a user accesses the page. To accomplish this, cfcache creates temporary files that contain the static HTML returned from a page. You can use cfcache for simple URLs and URLs that contain URL parameters. Optional: * action (string): - cache (default): server-side and client-side template caching. - flush: refresh cached pages (template caching). - clientcache: browser-side caching only. To cache a personalized page, use this option. - servercache: server-side caching only. Not recommended. - optimal: same as "cache". - content: same as cache, but cache only the body of the tag, not the complete template (template caching). - put: adds a key value pair to object cache (see function cachePut for more details) - get: gets value matching given key from object cache (see function cacheGet for more details) * key (string): key to access cache * id (any): Id of the cached object * throwonerror (boolean): A Boolean value specifying whether t throw an error if the flush action encounters an error. Otherwise the action does not generate an error if it fails. If this attribute is true you can handle the error in a cfcatch block, for example, if a specified id value is invalid * name (string): name of return variable, valid with action="get" * metadata (string): Name of the struct variable * value (any): For action="set", object which needs to be stored * cachename (string): definition of the cache used by name, when not set the "default Object Cache" defined in Lucee Administrator is used instead. * username (string): When required for basic authentication, a valid username. * password (string): When required for basic authentication, a valid password. * protocol (string): Specifies the protocol used to create pages from cache. Either http:// or https://. The default is http://. * timespan (timespan): The interval until the item is flushed from the cache. A decimal number of days, for example: ".25", for one-fourth day (6 hours); "1", for one day; "1.5", for one and one half days A return value from the CreateTimeSpan function, for example, "#CreateTimeSpan(0,6,0,0)#". The default action is to flush the item when it is idle for the time specified by the idleTime attribute, or cfcache action="flush" executes. * idletime (timespan): Flushes the cached item if it is not accessed for the specified time span: A decimal number of days, for example: ".25", for one-fourth day (6 hours); "1", for one day; "1.5", for one and one half days A return value from the CreateTimeSpan function, for example, "#CreateTimeSpan(0,6,0,0)#". * directory (string): Absolute path of cache directory. * cachedirectory (string): Absolute path of cache directory (alias for directory). * timeout (any): This attribute has been deprecated and is non-functional. * expireurl (string): A URL reference. Can include wildcards, for example: "*/view.cfm?id=*". Lucee flushes, from the cache, pages that match the specified URL or pattern. * port (number): Port number of the web server from which the URL for the cached page is requested. In the internal call from cfcache to cfhttp, Lucee resolves each URL variable in the page; this ensures that links in the page remain functional.
Detail
stringvalid attribute names are [action,key,id,throwonerror,name,metadata,value,cachename,username,password,protocol,timespan,idletime,directory,cachedirectory,timeout,expireurl,port]
ErrorCode
string0
Extended_Info
string
ExtendedInfo
string
Message
stringAttribute [usequerystring] is not allowed for tag [cfcache]
StackTrace
stringlucee.runtime.exp.TemplateException: Attribute [usequerystring] is not allowed for tag [cfcache] at lucee.transformer.cfml.tag.CFMLTransformer.createTemplateException(CFMLTransformer.java:1285) at lucee.transformer.cfml.tag.CFMLTransformer.attributeName(CFMLTransformer.java:1180) at lucee.transformer.cfml.tag.CFMLTransformer.attribute(CFMLTransformer.java:1093) at lucee.transformer.cfml.tag.CFMLTransformer.attributes(CFMLTransformer.java:974) at lucee.transformer.cfml.tag.CFMLTransformer.tag(CFMLTransformer.java:688) at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:389) at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:397) at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:397) at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:397) at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:397) at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:397) at lucee.transformer.cfml.tag.CFMLTransformer.body(CFMLTransformer.java:397) at lucee.transformer.cfml.tag.CFMLTransformer.transform(CFMLTransformer.java:327) at lucee.transformer.cfml.tag.CFMLTransformer.transform(CFMLTransformer.java:319) at lucee.transformer.cfml.tag.CFMLTransformer.transform(CFMLTransformer.java:175) at lucee.runtime.compiler.CFMLCompilerImpl._compile(CFMLCompilerImpl.java:104) at lucee.runtime.compiler.CFMLCompilerImpl.compile(CFMLCompilerImpl.java:76) at lucee.runtime.PageSourceImpl._compile(PageSourceImpl.java:446) at lucee.runtime.PageSourceImpl.compile(PageSourceImpl.java:413) at lucee.runtime.PageSourceImpl.loadPhysical(PageSourceImpl.java:346) at lucee.runtime.PageSourceImpl.loadPageThrowTemplateException(PageSourceImpl.java:237) at lucee.runtime.PageSourceImpl.loadPage(PageSourceImpl.java:1024) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1029) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:926) at lucee.runtime.PageContextImpl.doInclude(PageContextImpl.java:907) at rentals.property_cfm$cf.call(/rentals/property.cfm:13) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1034) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:926) at lucee.runtime.listener.ClassicAppListener._onRequest(ClassicAppListener.java:65) at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:45) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2460) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2450) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2421) at lucee.runtime.engine.Request.exe(Request.java:45) at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1179) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1125) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165) at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:134) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorRequestHandler.java:772) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest(FusionReactorRequestHandler.java:344) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(FusionReactorRequestHandler.java:207) at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorRequestHandler.java:809) at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCoreFilter.java:36) at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:71) at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactorStaticFilter.java:54) at com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChainPointCut.java:42) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:474) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349) at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:478) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:798) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1434) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)
TagContext
Array
1
Struct
codePrintHTML
string5: &lt;div class=&quot;row&quot;&gt;<br> 6: &lt;div class=&quot;col-lg-12&quot;&gt;<br> <b>7: &lt;cfcache action=&quot;cache&quot; timespan=&quot;#settings.globalTimeSpan#&quot; usequerystring=&quot;true&quot; useCache=&quot;true&quot; directory=&quot;e:/inetpub/wwwroot/domains/#tinymce_domain#/temp_files&quot;&gt;</b><br> 8: &lt;cfset getAllProperties = application.bookingObject.getAllProperties()&gt;<br> 9: <br>
codePrintPlain
string5: <div class="row"> 6: <div class="col-lg-12"> 7: <cfcache action="cache" timespan="#settings.globalTimeSpan#" usequerystring="true" useCache="true" directory="e:/inetpub/wwwroot/domains/#tinymce_domain#/temp_files"> 8: <cfset getAllProperties = application.bookingObject.getAllProperties()> 9:
column
number84
id
string??
line
number7
Raw_Trace
string
template
stringE:\inetpub\wwwroot\domains\vacationlivingrentals.com\htdocs\rentals\all-properties.cfm
Type
stringcfml
2
Struct
codePrintHTML
string11: &lt;/cfoutput&gt;<br> 12: &lt;/cfsavecontent&gt;<br> <b>13: &lt;cfinclude template=&quot;all-properties.cfm&quot;&gt;</b><br> 14: <br> 15: &lt;cfelse&gt;<br>
codePrintPlain
string11: </cfoutput> 12: </cfsavecontent> 13: <cfinclude template="all-properties.cfm"> 14: 15: <cfelse>
column
number0
id
string??
line
number13
Raw_Trace
stringrentals.property_cfm$cf.call(/rentals/property.cfm:13)
template
stringE:\inetpub\wwwroot\domains\vacationlivingrentals.com\htdocs\rentals\property.cfm
type
stringcfml
type
stringtemplate