diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-11-14 15:53:30 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-11-14 15:53:30 -0800 |
commit | add586bbb129280badb484ae0fdaaa10372e4dc7 (patch) | |
tree | 38766b50d0f12e154f6b630c8e82ffff071add42 | |
parent | bf333aa762e061cf655c7c571e9ce5f8b721ba72 (diff) |
Create a task to clean up tag counts and delete tag with no associated
items. Fixes #1488.
-rw-r--r-- | modules/tag/helpers/tag_task.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tag/helpers/tag_task.php b/modules/tag/helpers/tag_task.php index 087c85de..7bf50546 100644 --- a/modules/tag/helpers/tag_task.php +++ b/modules/tag/helpers/tag_task.php @@ -51,7 +51,7 @@ class tag_task_Core { $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; |