On Moodle 3.10 and Moodle 4, when I purge the cache, I get these 2 warnings come up every time:
Warning: unlink(/var/www/data/cache/_temp_fad9880451716089665183c5201adbe2/default_application): Is a directory in /var/www/html/lib/moodlelib.php on line 9884
Warning: rmdir(/var/www/data/cache/_temp_fad9880451716089665183c5201adbe2): Directory not empty in /var/www/html/lib/moodlelib.php on line 9893
My data directory (/var/www/data) and all sub directories are 0777, with apache as user and group, so there should be no permission problem. Has anyone else seen this? Not sure if it's a bug worth reporting on the tracker, or something caused by something else in my setup.
Server is CentOS 7, running on a virtual machine through virtualbox and vagrant.