Skip to main content
Participant
April 12, 2015
Question

How to slow down or handle a cfloop for cfFTP with cfschedule

  • April 12, 2015
  • 0 replies
  • 199 views

I use a bespoke CMS to FTP all CF files from my CFserver to a different server that can only host static HTML files.

I do this by using a <cfloop> but FTP is to slow to take all those several hundred pages in just one loop.

In the loop I currently use

<cfloop ...>

     <cftry>

          <cfftp ...>

          <cfcatch type="Any">

               <meta HTTP-EQUIV="REFRESH" content="1;url=thispage.cfm">

               <cfabort>

          </cfcatch>

     </cftry>

<cfloop>

To restart the loop where it broke and start again by 'reloading' the page...

However I would like to automate this using <cfschedule> - but <cflocation> and <meta HTTP-EQUIV="REFRESH"> do not work within a <cfschedule>

Anyone got a similar problem and a good workaround for this problem?

Thanks,

Marc

This topic has been closed for replies.