moodle/question/engine
Tim Hunt 2ec325c252 MDL-29847 question preview: garbage collect old preview data.
This adds cron code which looks for question previews that have not been
touched for more than 24 hours, and deletes them.

We try to delete previews immediately. For example if the user clicks
start again, then we immediately delete their previous preview. However,
we can't do that if they just close the preview window. Hence we need
some cron code to clean up old preview that have got left lying around.

Normally, this code will not have much to do, so it will be very fast,
so we can afford to run it every cron.

This has been implemented in such a way that in future it will be easy
to add other cron code to the question bank.

Sadly, to make this work on MySQL, we require a horrible hack in the
already hacky delete_usage_records_for_mysql function.
2012-08-16 17:02:01 +01:00
..
tests MDL-34458 Librairies: Replaced deprecated get_context_instance() 2012-07-24 16:58:17 +08:00
upgrade MDL-32375 question unit tests: fix breakage from phpunit coversion. 2012-05-11 14:59:58 +01:00
bank.php MDL-29847 question preview: garbage collect old preview data. 2012-08-16 17:02:01 +01:00
datalib.php MDL-29847 question preview: garbage collect old preview data. 2012-08-16 17:02:01 +01:00
lib.php MDL-29808 qbehaviours: update to use ->dependencies in version.php 2011-11-10 19:12:25 +00:00
questionattempt.php Merge branch 'wip-mdl-32940' of git://github.com/rajeshtaneja/moodle 2012-07-24 13:39:59 +08:00
questionattemptstep.php MDL-30484 question engine: don't lose response files when regrading. 2012-01-30 16:57:23 +00:00
questionusage.php MDL-34862 question preview: improve preview ownership check. 2012-08-13 16:53:15 +01:00
renderer.php MDL-30883 question flags: aria attributes for accessibility 2012-06-26 09:58:11 +01:00
states.php MDL-34065 questions: also fix two typos in comments. 2012-07-05 13:49:05 +02:00