• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Apr 12, 2015 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

164

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
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation