Is the cache def installation available to local plugins

Is the cache def installation available to local plugins

by Brian walker -
Number of replies: 1

I'm working with Moodle 2.7 and followed the documentation instructions here to initialize a cache definition for a local plugin, but it doesn't seem to get registered when I re-install the plugin. 

The documentation references, 'moodle/mod/myplugin/db/caches.php' . 

Is the cache installation available for local-plugins (moodle/local/myplugin)?

How do you know if your definition has been digested correctly?  What table(s) will it show up in?


Thanks.

Average of ratings: -
In reply to Brian walker

Re: Is the cache def installation available to local plugins

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

.../db/caches.php is available to any type of plugin.

To see if it worked, look under Admin -> Plugins -> Caching -> Configuration and scroll down to Known cache definitions.

(If it is not working, the most silly thing to check is: have you increased the number in your plugin's version.php file?)