lock directory under moodledata directory

lock directory under moodledata directory

by Jinxing Chen -
Number of replies: 2
Hi, all

Under file system moodledata directory got a sub folder called lock, what is it? Safe to delete?


Star

Average of ratings: Useful (1)
In reply to Jinxing Chen

Re: lock directory under moodledata directory

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Long answer... it's the file based locking described here - https://docs.moodle.org/dev/Lock_API

You can delete it but I would stop cron and wait a while first just to be safe. 

Begs the question why you want to do this though?

Average of ratings: Useful (2)