This plugin adds an MUC store for H5P Library files to improve performance on sites with slow or non local disk file stores.
Place files in local/h5p_cache
Run Moodle upgrade
Finally, add the class override to your config.php to make H5P use this plugin.
$CFG->mod_hvp_file_storage_class = '\local_h5p_cache\file_storage';
Add a cache store mapping for local_h5p_cache in the MUC configuration: Site administration -> Plugins -> Caching -> Configuration
If using redis, ensure igbinary and gzip compression is enabled.
Files will be added to the cache when they are created or fetched from the file store.
Optionally, run the cli/fill_cache.php script to load all existing H5P Library files into the cache.