BUGFIX Fixed limiting of URLs on RebuildStaticCacheTask

This commit is contained in:
Ingo Schommer 2013-02-05 23:42:03 +01:00
parent 23eeb99075
commit 8dae8a3076

View File

@ -87,7 +87,7 @@ class RebuildStaticCacheTask extends Controller {
$count = isset($_GET['count']) ? $_GET['count'] : sizeof($urls); $count = isset($_GET['count']) ? $_GET['count'] : sizeof($urls);
if(($start + $count) > sizeof($urls)) $count = sizeof($urls) - $start; if(($start + $count) > sizeof($urls)) $count = sizeof($urls) - $start;
$urls = array_slice($urls, $start, $count); $mappedUrls = array_slice($mappedUrls, $start, $count);
if($removeAll && !isset($_GET['urls']) && $start == 0 && file_exists("../cache")) { if($removeAll && !isset($_GET['urls']) && $start == 0 && file_exists("../cache")) {
echo "Removing stale cache files... \n"; echo "Removing stale cache files... \n";