More lock factories

General plugins (Local) ::: local_morelockfactories
Maintained by Me!Damyon Wiese
Additional lock factories for the new locking framework. Supports memcache and memcached.

More lock factories 2014041400

Moodle 2.7, 2.8, 2.9, 3.0, 3.1, 3.2
Released: Monday, 14 April 2014, 4:48 PM
Moodle 2.7 introduces a locking api for critical tasks (e.g. cron).

The type of locking used can be set to one of the lock factories contained in this plugin.
by changing the $CFG->lock_factory setting in config.php.

e.g.

$CFG->lock_factory = "\\local_morelockfactories\\memcache_lock_factory";

The 2 lock factories contained in this plugin are:

"\\local_morelockfactories\\memcache_lock_factory" - Memcache locking

The memcache lock type depends on an external Memcache server to hold
the locks. It is dangerous to use this lock type with a Memcache server
that is also used for other purposes. If the memcache server deletes the
locks to reclaim space - the locks will be released. Also if memcache
is restarted, all cluster nodes also need to be restarted because their
active locks will have been released.

"\\local_morelockfactories\\memcached_lock_factory" - Memcached locking

The memcached lock type is identical to the memcache lock type except
it uses the memcached extension rather than the memcache one.

To configure the memcache server that is used for locking with either factory,
set the config variable:

$CFG->lock_memcache_url = 'localhost:11211';

The memcache server url should consist of the memcache server hostname and optionally
the port. E.g. localhost:11211

Version information

Version build number
2014041400
Version release name
2014041400
Maturity
Stable version
MD5 Sum
fabd1ae5542d70f51c32bbc195eae483
Supported software
Moodle 2.7, Moodle 2.8, Moodle 2.9, Moodle 3.0, Moodle 3.1, Moodle 3.2
  • Latest release for Moodle 2.7
  • Latest release for Moodle 2.8
  • Latest release for Moodle 2.9
  • Latest release for Moodle 3.0
  • Latest release for Moodle 3.1
  • Latest release for Moodle 3.2

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS branch
master

Default installation instructions for plugins of the type General plugins (Local)

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder in the "local" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation.