Please sign in to comment.
MDL-32279 glossary filter: nasty hack to get filter working with cach…
…ed texts. For Moodle 2.3 the filters API has been extended to offer a setup() method, able to define all the page/init requirements for each filter. For this (2.2) version, where the setup() method is not available, we are abusing badly the hash() method because it's the unique point out from the caching mechanism where we can inject such requirements. Alternative solutions like backporting the API or add the requirements to all the pages have been considered worse than this abuse. Note, finally that this is not backportable to 2.1 because the glossary filter there is a legacy one, so it does not have the hash() facility either. Unique workaround there is to disable caching.
- Loading branch information...