Skip to content
Browse files

- added tag_cron() to cron.php

  • Loading branch information...
1 parent 5557c75 commit 19e41f75f27fd6a56729422f84526f28895b7866 luizlaydner committed Aug 4, 2007
Showing with 17 additions and 1 deletion.
  1. +5 −0 admin/cron.php
  2. +12 −1 tag/lib.php
View
5 admin/cron.php
@@ -268,6 +268,11 @@
}
}
+ if(!empty($CFG->usetags)){
+ require_once($CFG->dirroot.'/tag/lib.php');
+ tag_cron();
+ }
+
} // End of occasional clean-up tasks
View
13 tag/lib.php
@@ -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

0 comments on commit 19e41f7

Please sign in to comment.
Something went wrong with that request. Please try again.