How to disable cachedassets?
Submitted by papi Jo on Wed, 11/30/2016 - 18:31
Forums:
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
Thu, 12/01/2016 - 10:23
Permalink
Hi,
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
Thu, 12/01/2016 - 17:51
Permalink
Thanks
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
Fri, 12/02/2016 - 10:03
Permalink
Great. I have created an
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 :)