mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
martinlanghoff
1a9b67874f
accesslib: has_capability() now supports fake $USER for forum cron
has_capability() can handle the fake user that forum cron sets up and will load the appropriate accessdata into $USER->access. This makes forum cron work again. A test comparison between before this patchseries yields: With 1 forum post, sent total 24 times - Before 11 000 DB queries (approx) - After 506 DB queries With 6 forum posts, sent a total of 452 times - Before 47 876 DB queries - After 8 256 DB queries There is a very high variability, but we are going from 100-500 queries per sent email to 18-21 queries per sent email. The variability probably stems from 2 of the 6 posts being in a 200-user forum. Still huge - by the time we are sending the email, we should know everything we need to know about the user, the forum/thread/post and the form. The average should be well below 1 DB query per email sent!
README $Id$ ------ QUICK INSTALL ============= For the impatient, here is a basic outline of the installation process, which normally takes me only a few minutes: 1) Move the Moodle files into your web directory. 2) Create a single database for Moodle to store all it's tables in (or choose an existing database). 3) Visit your Moodle site with a browser, you should be taken to the install.php script, which will lead you through creating a config.php file and then setting up Moodle, creating an admin account etc. 4) Set up a cron task to call the file admin/cron.php every five minutes or so. For more information, see the INSTALL DOCUMENTATION: http://docs.moodle.org/en/Installing_Moodle A local copy can also be found in lang/en_utf8/help/install.html (or your language) Good luck and have fun! Martin Dougiamas, Lead Developer
Description
Languages
PHP
78.1%
JavaScript
14.6%
Gherkin
3.5%
CSS
1.7%
Mustache
1.6%
Other
0.4%