Adam Olley
fc73f127eb
MDL-58160 coursecat: Use set_many to populate category cache
...
When the course category cache needs to be repopulated, two entries are added
to the cache for each category. In core this is currently done in a for-loop,
resulting in N set calls to the cache (where N is twice the number of
categories in Moodle).
This change switches that code to using a single set_many cache call instead,
which makes this an O(1) operation instead of O(N).
For a site with say, 1000 categories, this results in only 1 set call to the
cachestore instead of 2000.
2017-03-06 12:06:13 +10:30
..
2016-10-05 10:58:10 +08:00
2016-11-15 12:44:59 +08:00
2017-02-08 11:17:39 +08:00
2016-12-05 17:17:54 +01:00
2017-02-21 23:57:37 +01:00
2016-01-13 11:31:55 +00:00
2017-02-24 13:19:12 +11:00
2017-02-08 09:08:02 +00:00
2017-03-01 09:05:40 +08:00
2017-03-01 09:05:40 +08:00
2017-02-07 09:43:49 +08:00
2015-12-11 14:02:42 +08:00
2016-07-26 10:11:30 +08:00
2016-08-01 09:12:36 +08:00
2017-02-16 12:46:46 +00:00
2017-01-27 14:01:16 +08:00
2016-03-22 08:38:11 +08:00
2017-02-14 11:40:54 +05:30
2015-12-08 12:47:15 +08:00
2016-05-18 11:37:17 +08:00
2016-10-20 17:52:32 +02:00
2015-12-02 14:00:58 +08:00
2016-10-04 11:16:29 +01:00
2016-03-24 12:58:10 +01:00
2016-10-28 10:10:43 +08:00
2016-03-21 13:04:05 +08:00
2016-09-19 08:59:38 +01:00
2016-10-10 13:17:04 +01:00
2016-10-14 08:31:23 +01:00
2016-07-20 12:55:09 +08:00
2016-10-13 09:18:34 +08:00
2016-09-23 10:53:30 +01:00
2015-12-08 12:13:48 +08:00
2016-12-21 01:11:32 +01:00
2017-01-30 09:23:58 +08:00
2016-10-28 11:56:42 +08:00
2016-11-21 08:57:53 +08:00
2016-09-23 10:49:49 +01:00
2016-09-23 10:49:49 +01:00
2016-10-06 11:51:28 +02:00
2016-10-04 10:47:06 +08:00
2015-10-08 11:36:35 +01:00
2017-03-01 11:37:28 +08:00
2016-10-30 13:42:43 +11:00
2017-02-24 08:07:59 +08:00
2016-09-14 13:48:38 +10:00
2016-06-08 11:06:16 +10:00
2017-02-24 08:27:44 +08:00
2017-02-27 09:00:54 +08:00
2016-12-14 11:34:25 +00:00
2016-11-23 19:35:08 +00:00
2016-11-07 15:56:26 +10:30
2016-12-19 15:46:59 +00:00
2016-07-19 14:44:51 +08:00
2015-09-17 21:12:46 +02:00
2016-11-07 07:41:59 +08:00
2016-08-03 09:05:55 +08:00
2016-11-16 08:59:15 -08:00
2017-03-06 12:06:13 +10:30
2015-09-07 18:40:05 +01:00
2016-09-29 16:40:40 +01:00
2016-04-21 16:20:36 +08:00
2016-10-17 11:08:20 +08:00
2015-07-10 01:59:31 +02:00
2016-11-17 09:11:37 +08:00
2015-07-10 01:59:31 +02:00
2016-02-23 10:47:59 +00:00
2017-01-19 14:44:16 +00:00
2016-11-11 12:37:07 +08:00
2016-01-19 15:12:15 +08:00
2016-02-08 15:17:02 +10:30
2016-11-10 16:15:31 +08:00
2017-01-02 16:43:52 +01:00
2016-12-07 10:17:36 +00:00
2017-01-09 10:30:03 +00:00
2016-08-15 10:54:28 +08:00
2016-10-25 10:10:52 +01:00
2015-12-11 14:02:42 +08:00
2016-09-30 09:27:59 +01:00
2016-06-10 08:06:49 +10:00
2016-11-04 17:30:40 +08:00
2016-10-10 13:17:04 +01:00
2017-01-19 10:58:13 +01:00
2015-12-11 14:02:42 +08:00
2015-12-11 14:02:42 +08:00
2016-11-04 17:30:40 +08:00
2016-11-16 10:22:52 +08:00
2016-11-07 07:41:59 +08:00
2017-02-28 23:00:42 +01:00
2016-10-05 15:08:38 +01:00
2017-01-09 09:42:17 +00:00
2016-10-10 14:02:20 +08:00
2016-07-29 08:15:16 +08:00
2016-09-23 10:55:16 +01:00
2016-11-23 15:30:32 +08:00
2016-11-15 12:44:59 +08:00
2016-02-03 10:07:08 +08:00
2016-12-09 08:47:05 +00:00
2017-02-21 00:58:13 +01:00
2017-02-24 08:16:38 +08:00
2016-12-01 14:51:40 +08:00
2016-06-10 08:06:49 +10:00
2016-01-18 09:39:54 +00:00
2016-11-11 12:39:35 +00:00
2016-11-17 14:20:52 +08:00
2016-10-04 09:49:27 +01:00
2016-08-03 10:18:41 -07:00
2015-06-04 11:13:00 +08:00
2016-01-18 13:44:22 +08:00
2015-12-11 14:02:42 +08:00
2016-06-10 08:06:49 +10:00
2016-08-22 09:20:32 +10:00
2017-01-30 09:23:58 +08:00
2017-02-14 11:36:01 +00:00
2016-08-18 10:13:31 +08:00
2016-12-12 09:07:30 +00:00
2016-11-04 17:30:40 +08:00
2017-02-28 11:32:39 +01:00
2017-03-01 09:05:40 +08:00
2016-02-25 09:55:45 +00:00
2016-11-16 17:19:19 +08:00
2017-02-19 18:44:48 +00:00
2016-01-18 13:44:22 +08:00