Skip to content

Commit

Permalink
- added tag_cron() to cron.php
Browse files Browse the repository at this point in the history
  • Loading branch information
luizlaydner committed Aug 4, 2007
1 parent 5557c75 commit 19e41f7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions admin/cron.php
Expand Up @@ -268,6 +268,11 @@
} }
} }


if(!empty($CFG->usetags)){
require_once($CFG->dirroot.'/tag/lib.php');
tag_cron();
}

} // End of occasional clean-up tasks } // End of occasional clean-up tasks




Expand Down
13 changes: 12 additions & 1 deletion tag/lib.php
Expand Up @@ -1076,7 +1076,18 @@ function rand_tags_count($nr_of_tags=20, $tag_type = 'default') {


} }


/*-------------------- Printing functions -------------------- */ function tag_cron(){

tag_instance_table_cleanup();

$tags = get_all_tags('*');

foreach ($tags as $tag){
cache_correlated_tags($tag->id);
}

}
/*-------------------- Printçing functions -------------------- */


/** /**
* Prints a box that contains the management links of a tag * Prints a box that contains the management links of a tag
Expand Down

0 comments on commit 19e41f7

Please sign in to comment.