public static function get_store_plugin_actions($name, array $plugindetails) {
        $actions = array();
        if (has_capability('moodle/site:config', context_system::instance())) {
            if (!empty($plugindetails['canaddinstance'])) {
                $url = new moodle_url('/cache/admin.php', array('action' => 'addstore', 'plugin' => $name, 'sesskey' => sesskey()));
                $actions[] = array(
                    'text' => get_string('addinstance', 'cache'),
                    'url' => $url
                );
            }
        }
        return $actions;
    }