mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
BUGFIX Fixed limiting of URLs on RebuildStaticCacheTask
This commit is contained in:
parent
23eeb99075
commit
8dae8a3076
@ -87,7 +87,7 @@ class RebuildStaticCacheTask extends Controller {
|
||||
$count = isset($_GET['count']) ? $_GET['count'] : sizeof($urls);
|
||||
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")) {
|
||||
echo "Removing stale cache files... \n";
|
||||
|
Loading…
Reference in New Issue
Block a user