How to disable cachedassets?

papi Jo's picture

Using H5P on a Wordpress local site for testing & development purposes. I understand the need for caches of all kinds, but the cache feature is a handicap when developing. Whenever I make changes to a H5P script, I have to empty the cachedassets directory before testing my H5P contents.

How can I disable the H5P cache during development (and re-enable it afterwards)?

Thanks!

thomasmars's picture

You can find the different development flags at https://h5p.org/wordpress-customization.

However, I see that it has not been updated with the aggregate assets flag. This should be called 'H5P_DISABLE_AGGREGATION'. If you set this to true you should be able to achieve what you want here. When you are done, you can just switch it back off.

- Thomas

papi Jo's picture

Thanks for your reply, Thomas, setting H5P_DISABLE_AGGREGATION to true in wp-config.php does disable the aggregateAssets feature. Please update the wordpress-customization page with that flag.

thomasmars's picture

Great. I have created an issue for updating the documentation at the open issue tracker. You may add a draft there for the documentation if you wish to contribute :)