Commit Graph

90 Commits

Author SHA1 Message Date
Sam Hemelryk 22cb8ba92c MDL-43349 cache: init now checks store requirements are met 2014-01-02 09:22:34 +13:00
Russell Smith ddc0064a52 MDL-41292 cache: only update identifiers if they change 2013-12-18 02:23:46 +01:00
Sam Hemelryk a0a05fa456 MDL-43033 cache: added stats logging to set_many methods 2013-12-02 09:29:38 +13:00
Sam Hemelryk c8e3e6f1f0 MDL-43033 cache: fixed display of definition stores in admin interface 2013-12-02 09:29:37 +13:00
Sam Hemelryk 5f70bde008 MDL-43033 cache: added a warning icon for mappings
We now show a warning icon with an explanatory alt if the user
has mapped a store as a mode default that doesn't not fulfill the
requirements of every known definition.
2013-12-02 09:29:37 +13:00
Sam Hemelryk d9a72b3c05 MDL-43033 cache: fixed mode map event invalidation scenario 2013-12-02 09:29:37 +13:00
Sam Hemelryk ead81f3fd2 MDL-43033 cache: added stats logging to get_many methods 2013-12-02 09:29:37 +13:00
Sam Hemelryk 96f91e34bf MDL-41997 cache: dummy store now uses static acceleration for session + request 2013-09-30 09:42:39 +13:00
Sam Hemelryk de760ea9a3 MDL-40903 cached: fixed up versions 2013-09-24 21:13:33 +12:00
Sam Hemelryk cf078f8427 MDL-40903 cache: renamed persistcache to staticacceleration 2013-09-24 21:13:33 +12:00
Sam Hemelryk 6ad2368071 MDL-40903 cache: fixed up event invalidation 2013-09-24 21:13:33 +12:00
Marina Glancy ae3f682a63 MDL-40903 cache: Unittests and small fixes for persistent application cache 2013-09-24 21:13:33 +12:00
Sam Hemelryk b7a3f7457d MDL-40903 cache: coding style tidyup pre-integration 2013-09-24 21:13:32 +12:00
Sam Hemelryk c755b4ef1f MDL-40903 cache: converted persistent into persistentdata
At the same time all cache instances were made persistent
2013-09-24 21:13:32 +12:00
Sam Hemelryk 63ce1b82c6 MDL-41106 cache: several fixes for the session cache.
This issue makes several fixes for the session loader and the session store.
 * maxsize argument now works for session caches.
 * fixed performance hole when interation occurs frequently.
 * fixed cache purge bug occuring when multiple caches are defined before being used.
 * improved lastaccess handling.

Big thanks to Marina who contributed the following commits:
 * Always make sure the elements in cache are sorted so we need to remove only elements in the beginning of array
 * Remove expired elements from session store to free memory
 * Minor bug fixes
2013-08-26 09:50:16 +12:00
Damyon Wiese 01f44f262a Revert "MDL-41106 cache: several fixes for the session cache."
This reverts commit 17aed88ed4.
This reverts commit 4e9ccabd81.
This reverts commit a0933c542e.
2013-08-19 15:32:56 +08:00
Sam Hemelryk 17aed88ed4 MDL-41106 cache: tidied up several elements
Conflicts:
	cache/stores/session/lib.php
2013-08-19 11:30:50 +12:00
Sam Hemelryk a0933c542e MDL-41106 cache: several fixes for the session cache.
This issue makes several fixes for the session loader and the session store.
* maxsize argument now works for session caches.
* fixed performance hole when interation occurs frequently.
* fixed cache purge bug occuring when multiple caches are defined before being used.
* improved lastaccess handling.
2013-08-16 11:59:02 +12:00
Sam Hemelryk 72433ecb43 MDL-39062 cache: persist keys now set properly 2013-07-15 12:01:08 +12:00
sam marshall 3a2e904098 MDL-39472 MUC: Optimise cache::get_from_persist_cache 2013-06-12 14:29:48 +08:00
Sam Hemelryk b0dd08dd63 MDL-39430 cache: gets purged by force during upgrade and install 2013-05-09 10:42:21 +12:00
Sam Hemelryk bd12f745b7 MDL-39554 cache: forced sharing options for static + request 2013-05-08 10:56:55 +12:00
Sam Hemelryk 045fe95c63 MDL-39525 cache: fixed purging definitions requiring identifiers 2013-05-07 15:11:33 +12:00
Eloy Lafuente (stronk7) 4d71661e2b Merge branch 'wip-MDL-37500-m25' of git://github.com/samhemelryk/moodle 2013-05-07 03:00:02 +02:00
Sam Hemelryk 5f5776c1e6 MDL-37500 cache: integration review touchups.
Issues:
1. Fix setType calls
2. Changing from default to all and editing again, default is still selected.
3. Uncheck all options causes error.
4. Doesn't seem to be restricting based upon option.
5. Picked all and got coding error with the database thing.
6. Bad title: https://github.com/samhemelryk/moodle/commit/wip-MDL-37500-m25#L1R157
7. Amend comments - should only be removed once 2.5 is the minimum version for an upgrade.
8. Document the defaultsharing option.

Outcomes:
1. Fixed - copy paste error.
2. Fixed - mforms was applying the default value despite a value being provided. A quirk of elements with array names.
3. Fixed - validation now requires at least one option to be selected.
4. Fixed - issue rose from definitions not being re-parsed. cache/admin.php now reparses the first time a user visits the page.
5. Fixed - better purging of definitions when working with them anonymously. Unit test added.
6. Fixed - new string added and used.
7. Fixed - comments amended.

New issue to address parsing of definitions during upgrade.
New issue to add debugging notice if definition sets only one possible sharing option and that option is user input.
2013-05-07 12:49:12 +12:00
Sam Hemelryk 46e17f04c7 MDL-37500 cache: implemented sharing options and gui 2013-05-07 11:57:37 +12:00
Tim Hunt 5f85073525 MDL-39445 get_plugin_list clean_param use is slow
get_plugin_list was calling clean_param($pluginname, PARAM_PLUGIN) a
lot (600+ times per page), and that is much slower than you would guess.
A specific function for this case, (which we then also use from
clean_param) is a performance win.
2013-05-02 16:20:24 +01:00
Sam Hemelryk acf49f4b9a MDL-39312 cache: interfaces for managing lock instances.
Bug: There was no way to create an instance of a lock plugin for use
within Moodle.
Solution: Implemented management interfaces as part of cache/admin.php
to allow for instances to be added and deleted.
This was done in along the same lines of adding store instances.
2013-04-30 16:26:34 +12:00
Sam Hemelryk 5cba0c4ba3 MDL-38565 cache: tidy up pre-integration 2013-04-19 10:13:36 +12:00
Sam Hemelryk 4da28110c0 MDL-38565 cache: improve stats gathering 2013-04-19 10:12:59 +12:00
Sam Hemelryk 059102e728 MDL-38565 cache: cron routine to clean up old session data 2013-04-19 10:11:48 +12:00
Sam Hemelryk dbd2ea4e1f MDL-38565 cache: session caches now function as expected
This change is a large change to the way sessions are handled
within MUC after it was discovered that session did not function
as expected when any store other than the default session store
was being used.
As part of this change the session loader has been largely
customised in order to consolidate session data for the loader.
The unit tests have also being greatly increased to provide
better coverage for sessions.
2013-04-19 10:11:48 +12:00
Sam Hemelryk 7b9cb736ba MDL-38387 cache: removed call to plugins API from cache API 2013-03-20 16:07:25 +13:00
Sam Hemelryk a3b63be703 MDL-38350 cache: fixed issue with siteidentifier === false 2013-03-20 16:07:25 +13:00
Sam Hemelryk fe86ebfa4d MDL-38387 cache: fixed inifinite initialisation loop with site id 2013-03-20 16:07:25 +13:00
Aparup Banerjee 61bd40d562 Revert "MDL-38387 cache: fixed inifinite initialisation loop with site id"
This reverts commit 17200a016d.
2013-03-14 15:39:07 +08:00
Damyon Wiese 3f5ef33fb9 Merge branch 'wip-MDL-38303-m25' of git://github.com/samhemelryk/moodle 2013-03-14 15:30:32 +08:00
Sam Hemelryk 17200a016d MDL-38387 cache: fixed inifinite initialisation loop with site id 2013-03-11 10:32:46 +08:00
Sam Hemelryk 35b2d0db5e MDL-38303 cache: fixed purging of session cache when switching users 2013-03-10 11:31:26 +13:00
Sam Hemelryk 3d6dd54ad1 MDL-38165 cache: fixed issues purging peristent caches by event 2013-03-01 11:38:02 +13:00
Sam Hemelryk 43394c5114 MDL-38165 cache: fixed up application event purging 2013-03-01 10:10:30 +13:00
Sam Hemelryk b6c86be197 MDL-38165 cache: fixed up session event purging 2013-03-01 10:10:30 +13:00
Damyon Wiese 7866b094cb MDL-37683 cache: - Comments cleanup and remove ;; 2013-02-18 10:35:31 +08:00
Sam Hemelryk 7634410b6e MDL-37683 cache: improved indentifier collection and storage 2013-02-18 10:20:02 +13:00
Sam Hemelryk e0d9b7c0d4 MDL-37683 cache: siteidentifier is now included in the keys 2013-02-18 08:32:03 +13:00
Sam Hemelryk 79c55ca344 MDL-36322 cache: implemented cache_store::create_clone 2013-02-01 08:49:03 +13:00
Sam Hemelryk 5dfa3031a8 MDL-36322 cache: clarified docs for initialise and construct 2013-02-01 08:49:03 +13:00
Sam Hemelryk 3aee2fb8ee MDL-36363 cache: fixed issue with double parsing keys for stacked loaders 2013-01-31 09:10:57 +13:00
Eloy Lafuente (stronk7) 6155915ffb Merge branch 'wip-MDL-36363-m25' of https://github.com/samhemelryk/moodle 2013-01-29 12:06:33 +01:00
Sam Hemelryk 9890ecfc25 MDL-37545 cache: fixed bug during initialisation and updating of cache config 2013-01-28 10:40:37 +13:00