Shawn
asked on
include template with link
I'm trying to clear the cache in an admin area via a link on a page. My link right now is
<cfoutput><a href="members/act_clearcac hed.cfm">C lear Cache</a></cfoutput>
I don't really wqant to go to the page. I want it to include the template act_clearcached.cfm when it reloads.
what is missing here?
<cfoutput><a href="members/act_clearcac
I don't really wqant to go to the page. I want it to include the template act_clearcached.cfm when it reloads.
what is missing here?
Correction:
<cfinclude template="members/act_clea rcached.cf m">
<cfinclude template="members/act_clea
ASKER
but I want it to happen only when the link is clicked on. Would it be something like
<cfoutput><a href="<cfinclude template="members/act_clea rcached.cf m"> ">Clear Cache</a></cfoutput>
act_clearcached.cfm does have a little output. see below
<cfoutput><a href="<cfinclude template="members/act_clea
act_clearcached.cfm does have a little output. see below
act_clearcached.cfm
<cfobjectcache action="clear">
<br>
<br>
<br>
<div align="center"><strong>All cached objects should now be cleared.</strong></div>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
tried solution 2 and works like a charm
thanks agx
thanks agx
<cfinclude template="act_clearcached.