Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

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

$
0
0

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


Viewing all articles
Browse latest Browse all 5979

Trending Articles