Cache API
And, considering the possible adverse effects on application performance that we may experience when we start allowing users to add files to text, another important API we need to be considering is the Cache API--see https://docs.moodle.org/dev/Cache_API. A cache is a place to store data--especially data that is the result of some complex processing--so that it can be retrieved and served more quickly the next time it is requested. Moodle supports the concept of cache plugins and provides an API to access a cache in order to (potentially) free developers from the need to worry about how exactly data is in fact cached. So why cache data at all? A database is designed to manage the effective storing of data but if the data needs to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access