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

Nosūtīja William Chan
Atbilžu skaits: 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

Vidējais novērtējums: -
Atbildot uz William Chan

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

Nosūtīja Howard Miller
Core developers attēls Documentation writers attēls Particularly helpful Moodlers attēls Peer reviewers attēls Plugin developers attēls

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

Atbildot uz William Chan

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

Nosūtīja 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.