Highlighted

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

New Here ,
Apr 12, 2015

Copy link to clipboard

Copied

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

Views

123

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

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

New Here ,
Apr 12, 2015

Copy link to clipboard

Copied

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

Views

124

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Apr 12, 2015 0

Have something to add?

Join the conversation