Ankit Agarwal
db314f34fb
MDL-40425 libraries: Remove context_instance_preload() from core
2013-07-09 15:55:51 +08:00
Adrian Greeve
a327f25ef1
MDL-31776 - lib: Alternate name fields
...
Add support for additional name fields and flexible formating of
user names.
2013-07-09 11:45:50 +08:00
Brian King
b04f84bc80
MDL-40130 Caching: let make_categories_list use the cache it makes
2013-06-21 11:12:21 +02:00
Tim Lock
d0ed33d6fd
MDL-40120: Fix get_course_records() which breaks in PSQL
2013-06-11 13:45:23 +12:00
Damyon Wiese
ef4d3233b6
MDL-38596 coursecatlib performance
...
Version bump for cache definitions and added user delete check to sql
2013-05-07 14:10:23 +08:00
Marina Glancy
36ba8fded0
MDL-38596 Added caching to the list of course contacts
2013-05-06 16:57:56 +10:00
Marina Glancy
31b0530aa6
MDL-38596 Optimise SQL in preloading course contacts for number of courses
2013-05-06 14:15:22 +10:00
Marina Glancy
5db8f5a8f4
MDL-39482 avoid using get_category_or_system_context() because file might not be included
2013-05-06 14:06:54 +10:00
Sam Hemelryk
15f89e2872
MDL-39422 course: converted closures to fix eAccelerator issues
2013-05-01 18:43:27 +12:00
Marina Glancy
473d5f74c7
MDL-39211 forgotten include of /course/lib.php
2013-04-18 13:47:04 +10:00
Marina Glancy
d1f8c1bd62
MDL-38708 Added course overview files (most often images) to courses
2013-04-02 11:08:21 +11:00
Marina Glancy
0a02b80cda
MDL-38147 fixed bug with windows PHP different function behaviour
2013-03-27 17:06:27 +11:00
Marina Glancy
a32f163dfd
MDL-38147 do not use DB->sql_length because it does not work on MSSQL
2013-03-27 16:07:29 +11:00
Marina Glancy
290af25434
MDL-38147 fixed small bug on changed categories cache
2013-03-26 14:09:00 +11:00
Marina Glancy
93c544bdb0
MDL-38147 Added functions coursecat::search_courses(), get_courses()
...
Also search_courses_count(), get_courses_count();
Added unittests
2013-03-25 13:23:38 +11:00
Marina Glancy
9c6cfc083f
MDL-38147 fixes to phpdocs and avoid using deprecated context functions
2013-03-25 13:23:37 +11:00
Marina Glancy
9178bbbcf3
MDL-38147 changed logic for building list in make_categories_list()
2013-03-25 13:23:37 +11:00
Marina Glancy
eabbfa82d3
MDL-38147 Improvements to caching of course categories, coursecat::get_children() improvements
...
- Course categories caches are purged by event now
- session cache has additional 10 minutes ttl to clear itself and accomodate for permission changes that do not trigger event purging
- additional request-level cache for coursecat::get()
- We store only children of one category in one cache key
- Function coursecat::get_children() can return results sorted and/or paginated. Added tests
2013-03-25 13:23:15 +11:00
Marina Glancy
15d50fffd8
MDL-38147 Performance improvements to coursecat class:
...
- Retrieve and cache only often-used fields of course category
- Removed function coursecat::get_all_visible() as potentially causing performance issues
- removed function coursecat::get_all_parents() as ineffective and unnecessary, replaced with get_parents()
- retrieve all fields from course_categories when unretrieved field is accessed
Also some code improvements:
- rename functions starting with _ , rename arguments, etc.
2013-03-25 13:23:14 +11:00
Marina Glancy
b33389d228
MDL-38147 Created class coursecat, added cache definition and lang strings
2013-03-25 13:20:33 +11:00