-
New Feature
-
Resolution: Fixed
-
Minor
-
3.11, 4.1
-
MOODLE_311_STABLE, MOODLE_401_STABLE
-
MOODLE_401_STABLE
-
MDL-70368-cache-image-metadata -
Getting image metadata from the File API pulls the file back down locally:
https://github.com/moodle/moodle/blob/master/lib/filestorage/file_system.php#L382-L384
In particular this gets used in a bunch of places when generating html to render an image tag with the right dimensions.
This data almost never changes and this is all very inefficient. As this is used so often for thumbnails I'm proposing to make the width and height metadata fields directly in the mdl_files table