cannot purge standard log in Moodle 3.1 although set keep standard log only for 5 days

cannot purge standard log in Moodle 3.1 although set keep standard log only for 5 days

William Chan發表於
Number of replies: 2

Dear ,

I have set "keep stanard log" only for 5 days in Moodle 3.1

However, I find the stanard log is kept for 1 years.

Since the stanard log size is too large, I want to purge standard log only for 5 days.

Please advise how to do it.

Also, I also want to set "kept grade history" to 180 days only.

If i set, do it only purge grade history, any submiited grade for assigment in old Moodle courses are still kept or not?

Regards,

                         William

評比平均分數: -
In reply to William Chan

Re: cannot purge standard log in Moodle 3.1 although set keep standard log only for 5 days

Howard Miller發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

If you have set it to 5 days (you did save the page, yes?) and your Cron is running then it should work. 

In reply to William Chan

Re: cannot purge standard log in Moodle 3.1 although set keep standard log only for 5 days

Jeff White發表於

Check your logs if you are getting any time out or out of memory errors. I had this issue when I was adjusting how long to keep my logs in a large environment from never delete logs to keep the logs for a year. You can either increase the limits in your PHP settings or tell the settings to say keep logs for 1000 days let the clean task finish, set it to 365 days, let the clean up task finish, keep going down until you get to the desired time. 

評比平均分數:Useful (2)