Changeset 57360

Show
Ignore:
Timestamp:
03/07/08 17:26:19 (2 months ago)
Author:
sminnee
Message:

Improved output of republisher

Location:
modules/cms/branches/2.2.2-assets
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • modules/cms/branches/2.2.2-assets/code/staticpublisher/FilesystemPublisher.php

    r55935 r57360  
    2525                 
    2626                $files = array(); 
    27                 foreach($urls as $url) { 
     27                foreach($urls as $i => $url) { 
     28                        echo " * Publishing page " . ($i+1) . "/" . sizeof($urls) .  ": $url\n"; 
     29                        flush(); 
    2830                        Requirements::clear(); 
    2931                        $response = Director::test($url); 
  • modules/cms/branches/2.2.2-assets/tasks/RebuildStaticCacheTask.php

    r55935 r57360  
    2626                $urls = array_unique($urls); 
    2727                 
    28                 echo "Removing old cache... "; 
     28                echo "Removing old cache... \n"; 
     29                flush(); 
    2930                Filesystem::removeFolder("../cache", true); 
    3031                echo "done.\n\n"; 
    31                  
    3232                echo  "Republishing " . sizeof($urls) . " urls:\n'" . implode("'\n'", $urls) . "'"; 
    3333                $page->publishPages($urls);