Show
Ignore:
Timestamp:
10/27/05 07:59:30 (3 years ago)
Author:
sdcosta
Message:

As Marco says, the Ajax-updater has a larger footprint on your server.
Now you have a way to kick the crap out of your server!!

Set AJAX_PARALLEL_SIZE to a higher number like 5 or 6.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/rss/cls/update.php

    r984 r987  
    3737 
    3838define ('AJAX_BATCH_SIZE',3); 
     39define ('AJAX_PARALLEL_SIZE',1); 
    3940 
    4041define ('THIS_FILE',basename(__FILE__)); 
     
    234235        echo "</table>\n";   
    235236        echo "<script type=\"text/javascript\">\n"; 
    236         echo "doUpdate();\n</script>\n"; 
     237        echo "for (k =0; k < " . AJAX_PARALLEL_SIZE . "; k++){\n"; 
     238        echo "doUpdate();}\n</script>\n"; 
    237239    } 
    238240} 
     
    449451         
    450452        if (document.feedPointer < document.feedCount) { 
     453            if (document.returnedUpdates >= document.feedPointer -  
     454                <?php echo AJAX_BATCH_SIZE * (AJAX_PARALLEL_SIZE - 1) ?>) { 
    451455            doUpdate(); 
     456            } 
    452457        } else { 
    453458            ajaxUpdateCleanup();