how about timestamp in mysql?
set it to null and it will update everytime the record is updated.
then, you will create a function that will update this record when that file is updated / accessed.
instead of update in your SQL query, you could insert a new record, then every update is recorded / logged.