MDL-67585 core_course: add caching_content_item_repository class
authorJake Dallimore <jake@moodle.com>
Mon, 20 Jan 2020 07:18:30 +0000 (15:18 +0800)
committerJake Dallimore <jake@moodle.com>
Thu, 20 Feb 2020 01:28:57 +0000 (09:28 +0800)
commit7c7ae1bd6f8d099dd2dee42c5321e0d7f74334f9
tree4635583f0e8e6a0b729c36fe97942bd2537c8fee
parent92715acd0cfe39c109cd75b7afacffe469c870fa
MDL-67585 core_course: add caching_content_item_repository class

A repository object which caches results for a user and course. This
allows this repository to be called many time in a single request - a
pattern we expect when objects of this type replace the existing
get_module_metadata() method.
course/classes/local/repository/caching_content_item_readonly_repository.php [new file with mode: 0644]
course/tests/caching_content_item_readonly_repository_test.php [new file with mode: 0644]