Skip to content

Commit

Permalink
Create a task to clean up tag counts and delete tag with no associated
Browse files Browse the repository at this point in the history
items.  Fixes #1488.
  • Loading branch information
bharat committed Nov 14, 2010
1 parent bf333aa commit add586b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tag/helpers/tag_task.php
Expand Up @@ -51,7 +51,7 @@ static function clean_up_tags($task) {
$completed = $task->get("completed");
$total = $task->get("total");
$last_tag_id = $task->get("last_tag_id");
$tags = ORM::factory("tag")->where("id", ">", $last_tag_id)->find_all();
$tags = ORM::factory("tag")->where("id", ">", $last_tag_id)->find_all(25);
Kohana_Log::add("error",print_r(Database::instance()->last_query(),1));
while ($current < $total && microtime(true) - $start < 1 && $tag = $tags->current()) {
$last_tag_id = $tag->id;
Expand Down

0 comments on commit add586b

Please sign in to comment.