18 Commits

Author SHA1 Message Date
Sam Hemelryk
d31fd615eb 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:30:03 +13:00
Sam Hemelryk
5451933012 MDL-39554 cache: sharing link only shown in multiple options are available 2013-05-08 11:02:14 +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
Mark Nelson
33bea465bd MDL-39470 cache: added missing component to get_string call 2013-05-06 13:51:00 +08: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
c6cbc3c70c MDL-37474 cache: fixed bug with definition cleaning 2013-01-30 10:28:34 +13:00
Sam Hemelryk
5052356574 MDL-37470 cache: definitions can now be purged through config screen 2013-01-28 10:39:47 +13:00
Dan Poltawski
8ca0746296 Merge branch 'wip-MDL-36324-m24' of git://github.com/samhemelryk/moodle 2012-11-09 13:43:37 +08:00
Sam Hemelryk
f1d29cf516 MDL-36324 cache: Fixed incorrect get_string component 2012-11-09 16:58:51 +13:00
Matteo Scaramuccia
7a65e286ca MDL-36359 Typo prevents 'Cancel' action in 'Add instance' to work as expected 2012-11-04 18:52:43 +01:00
Sam Hemelryk
7e7e108f93 MDL-36115 cache: Fixed up requirements check in cache admin interfaces 2012-10-19 08:12:32 +08:00
Sam Hemelryk
26ce56fddf MDL-25290 cache: renaming to better separate store plugins from lock plugins 2012-10-08 09:53:52 +13:00
Sam Hemelryk
170f821b9d MDL-25290 cache: Fixed things up per coding style 2012-10-08 09:53:52 +13:00
Sam Hemelryk
167ad91e86 MDL-25290 cache: Added UI to view the cache lock setups and tidied up a couple of things 2012-10-08 09:53:51 +13:00
Sam Hemelryk
8139ad13a5 MDL-25290 cache: Implemented Cache API aka MUC 2012-10-08 09:53:50 +13:00