Russell Smith
f9599c77cc
MDL-56273 cache: Ensure requirements are met for cache stores.
...
Ensure that the cache store requirements are met prior to attempting
to instantiate a class. Many of the constructors create connections
to external services requiring the installation and availability of
classes that are specified in are_requirements_met(). If they are
not checked properly you end up with PHP Fatal errors rather than
falling back to a different store that is capabable without the
the extra classes loaded.
2016-10-31 16:04:51 +11:00
Michael Aherne
220f1cba3e
MDL-56220 cache: Call static method correctly
2016-09-30 14:49:46 +01:00
Russell Smith
4350192a8d
MDL-52346 caching: Allow localstorage as a cache option.
...
We display a notification on screen during configuration telling
the administrator if it's safe to map this store to a local storage
cache or not.
2016-02-26 10:58:20 +11:00
Sam Hemelryk
727c21733e
MDL-45724 cache: admin screen now shows store warnings
...
Implemented a means by which cache store instance can communicate
warnings due to things such as conflicting configurations etc.
2014-07-18 08:29:41 +12:00
Sam Hemelryk
79a8ea653c
MDL-45513 cache: added support to unit tests for alt cache stores
2014-05-30 08:41:07 +12:00
Sam Hemelryk
e28a953996
MDL-43033 cache: fixed display of definition stores in admin interface
2013-12-02 09:30:03 +13:00
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
Frederic Massart
d0cac8b51b
MDL-41100 libraries: Deprecating get_plugin_list_with_file
2013-08-09 11:59:48 +08:00
Petr Škoda
eb459f7192
MDL-40642 set more restrictive umask and use proper permission for new dirs and files
2013-07-19 09:18:44 +02:00
Petr Škoda
059e08ed92
MDL-40220 use new core_component::get_plugin_list_with_class()
2013-07-16 22:37:15 +02:00
Petr Škoda
bd3b3bba9f
MDL-40220 use new core_component::get_plugin_list()
2013-07-16 22:36:11 +02:00
Petr Škoda
46f6f7f224
MDL-40220 use new core_component::get_plugin_types()
2013-07-16 22:31:48 +02:00
Sam Hemelryk
a13ee8e18a
Merge branch 'MDL-40402-master2' of git://github.com/ankitagarwal/moodle
2013-07-09 14:42:03 +12:00
Petr Škoda
c05a50992e
MDL-40415 add explicit OPcache support
2013-07-04 19:32:26 +02:00
Ankit Agarwal
0601e0eef6
MDL-40402 libraries: Replace get_system_context() with context_system::instance() in core
2013-07-04 15:41:06 +08:00
Damyon Wiese
969eaa3eca
MDL-39602 cache: Move the includes for default stores
...
Putting them inside the function get_default_stores ensures
that they will be included from anywhere that calls get_default_stores.
2013-05-10 11:53:45 +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
5451933012
MDL-39554 cache: sharing link only shown in multiple options are available
2013-05-08 11:02:14 +12:00
Sam Hemelryk
46e17f04c7
MDL-37500 cache: implemented sharing options and gui
2013-05-07 11:57:37 +12:00
Damyon Wiese
25927c42ce
MDL-39312 Cache lock plugins - fix undefined var and language typo
2013-05-01 10:51:32 +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
fbf76dcd17
MDL-38565 cache: upgrade code to amend default stores
2013-04-19 10:12:59 +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
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 17200a016dba8479476a3819b5646855014b8d75.
2013-03-14 15:39:07 +08:00
Sam Hemelryk
17200a016d
MDL-38387 cache: fixed inifinite initialisation loop with site id
2013-03-11 10:32:46 +08:00
Damyon Wiese
7866b094cb
MDL-37683 cache: - Comments cleanup and remove ;;
2013-02-18 10:35:31 +08:00
Sam Hemelryk
e0d9b7c0d4
MDL-37683 cache: siteidentifier is now included in the keys
2013-02-18 08:32:03 +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
Eloy Lafuente (stronk7)
ee4cac2b44
Merge branch 'wip-MDL-37474-m25' of git://github.com/samhemelryk/moodle
2013-01-29 01:32:09 +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
Sam Hemelryk
5052356574
MDL-37470 cache: definitions can now be purged through config screen
2013-01-28 10:39:47 +13:00
Sam Hemelryk
a037c943bd
MDL-36363 cache: clean up pre-integration
2013-01-28 10:39:23 +13:00
Matteo Scaramuccia
730cf5acbc
MDL-36363 Added cache_store::instance_created() and cache_store::instance_deleted()
2013-01-28 10:39:22 +13:00
Dan Poltawski
4554660c28
Merge branch 'wip-MDL-36466-m24' of git://github.com/samhemelryk/moodle
2012-11-27 13:38:53 +08:00
Sam Hemelryk
2b274ad001
MDL-36819 cache: implemented cache_is_configurable interface
2012-11-26 14:27:44 +13:00
Sam Hemelryk
75cde6b9ac
MDL-36768 cache: replaced cache_store interface with abstract class
2012-11-26 14:11:01 +13:00
Sam Hemelryk
7383a7e2a0
MDL-36466 cache: improved handling of exceptions during initialisation.
2012-11-26 08:11:59 +13:00
Sam Hemelryk
758dbdf894
MDL-36111 cache: Fixed up typo's and trivial issues
2012-11-12 10:36:53 +13:00
Sam Hemelryk
81ede547f2
MDL-36381 cache: fixed bug whereby you couldn't edit store instances
2012-11-08 10:54:11 +13:00
Sam Hemelryk
75af47ee1e
MDL-36386 cache: upgrades now trigger definitions to be updated
2012-11-07 10:42:20 +13: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
d4797177b5
MDL-36047 cache: Fixed up issues with PHP 5.3.2 and 5.3.7
2012-10-15 12:35:23 +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
42f2c59eb8
MDL-25290 cache: Added unit tests for admin and fixed up identified issues
2012-10-08 09:53:52 +13:00
Sam Hemelryk
573a6c8eb3
MDL-25290 cache: Made handling of cache locks when writing config more robust
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
34c84c723a
MDL-25290 cache: Added cache locking plugin and converted locking implementations to that
2012-10-08 09:53:51 +13:00
Sam Hemelryk
6fec18203b
MDL-25290 cache: Renamed plugin from cache => cachestore
2012-10-08 09:53:51 +13:00