Permalink
Browse files

BUGFIX Fixed limiting of URLs on RebuildStaticCacheTask

  • Loading branch information...
1 parent 23eeb99 commit 8dae8a307615a90c1e1a5e0a25707f9367367277 @chillu chillu committed Feb 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 tasks/RebuildStaticCacheTask.php
View
2 tasks/RebuildStaticCacheTask.php
@@ -87,7 +87,7 @@ public function rebuildCache($urls, $removeAll = true) {
$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";

0 comments on commit 8dae8a3

Please sign in to comment.