quick question about mdl_modules fields

quick question about mdl_modules fields

by Judy Hsu -
Number of replies: 2

Dear all, I tried to search on docs.moodle.org and other places, but couldn't find the answer. In mdl_modules table, there are these columns:

id name version cron lastcron search visible
1 chat 2005031000 300 1155276006   1
2 choice 2005041500 0 0   1
3 forum 2005042600 60 1155276006   1
4 glossary 2005041900 0 0   1
5 hotpot 2005031418 0 0   0
6 journal 2005041100 60 1155276006   0
7 label 2004111200 0 0   1
8 lesson 2005060900 0 0   1
9 presentation 2005032800 0 0   1
10 questionnaire 2006031702 43200 1155276006   1
11 quiz 2005060301 0 0   1
12 resource 2005041100 0 0   1
13 scorm 2005052200 0 0   1
14 survey 2005031600 0 0   1
15 wiki 2005031000 0 0   1
16 workshop 2005041200 60 1155276006   1

I think I could figure out most of them, but how do "cron" and "search" work? It seems that the "lastcron" would record when the cron job was last run with UNIX timestamp, but how about "cron" and "search"? If it is 300 (for chat), does it mean that it would run every 300 ms? Also, does the "search" just serve as a flag? Many thanks! 

Judy

Average of ratings: -
In reply to Judy Hsu

Re: quick question about mdl_modules fields

by Aaron Wells -
The cron field is the number of seconds to wait between runs (I don't see this anywhere in the Moodle documentation for the cron job, but you can see it around line 104 of admin/cron.php in Moodle 1.9).

I don't know what the search field is for. It's empty on all of my modules also. I thought it might have something to do with one of the search boxes in a normal Moodle installation (like searching admin pages), but I don't see any difference in behavior when I give it a value of 0 or 1. And searching the code for the word "search" turned up over 1000 matches, so that wasn't much help either. mixed
In reply to Aaron Wells

Re: quick question about mdl_modules fields

by sam marshall -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers
As I recall, Moodle contains part of an abortive attempt at a search system which doesn't really work and is turned off by default; this is probably part of it, at a guess...

--sam