cfsavecontent and query output
Can cfsavecontent be used multiple times with the same variable name on one page? I have a cfoutput query with the cfsavecontent within it. Since it cache's the content, will it recreate the content each time? I'm saving it to a file so that it can be a link. The data isn't coming out correct which is why I'm asking. I'm trying to create Events with a vCalendar link. I output the events in a list with the link to the vcs file. Is there a way to clear this variable each time? Any other way to go about this?
This code is sitting within a cfoutput query tag, so it loops multiple times.
<cfsavecontent variable="vCalendar.content">
BEGIN:VCALENDAR
VERSION:1.0
BEGIN:VEVENT
DTSTART:#vcalendar.startdate#T#vcalendar.starttime#Z
DTEND:#vcalendar.enddate#T#vcalendar.endtime#Z
TRANSP:1
SUMMARY:#vCalendar.Summary#
DESCRIPTION:#vCalendar.Description#
PRIORITY:#vCalendar.Priority#
END:VEVENT
END:VCALENDAR
</cfsavecontent>
<cffile action="WRITE" file="#ExpandPath(vCalendar.FileName)#" output="#Trim(vCalendar.content)#">
Thanks!
