In case you're interested, we have an official Moodle development calendar where we (Moodle HQ) are keeping all our development meetings.
You can subscribe to it here:
http://www.google.com/calendar/ical/moodle.development%40gmail.com/public/basic.ics
Or browse it here:
http://www.google.com/calendar/embed?src=moodle.development%40gmail.com
Martin Dougiamas
Posts made by Martin Dougiamas
I can't see any major problem with it. On a busy site you might get a big build up of session files but that's about it.
$time = time(); // this will get you the current time in unix time format (seconds since 1/1/1970 GMT)
echo userdate($time, '%H:%M'); // this will print the time in the timezone of the current user (formats)
echo userdate($time, '%H:%M'); // this will print the time in the timezone of the current user (formats)
Quize? That's odd (and local). What folders do you have in your dataroot/lang directory?
This is what I use on moodle.org:
crontab:
---------
/opt/bin/moodlecron
-------------------
#!/bin/bash
# Create a new lock (and exit this script if one already exists)
# -p = include PID ... and if a lock exists but the process doesn't then consider it stale
if (dotlockfile -p -r 0 /var/tmp/moodlecron.lock) then
# Perform the actual cron work
nice /opt/bin/php /var/www/html/moodle/admin/cron.php >> /logs/moodle_cron.txt 2>&1
nice /opt/bin/cleanupsessions
# Release the lock, allowing this script to be run next time
dotlockfile -u /var/tmp/moodlecron.lock
fi
And of course I installed dotlockfile
crontab:
---------
*/30 * * * * /opt/bin/moodlecron
/opt/bin/moodlecron
-------------------
#!/bin/bash
# Create a new lock (and exit this script if one already exists)
# -p = include PID ... and if a lock exists but the process doesn't then consider it stale
if (dotlockfile -p -r 0 /var/tmp/moodlecron.lock) then
# Perform the actual cron work
nice /opt/bin/php /var/www/html/moodle/admin/cron.php >> /logs/moodle_cron.txt 2>&1
nice /opt/bin/cleanupsessions
# Release the lock, allowing this script to be run next time
dotlockfile -u /var/tmp/moodlecron.lock
fi
And of course I installed dotlockfile