how to change the module instances' names

how to change the module instances' names

by ji min -
Number of replies: 1

Hello,

In my website, there are several modules (forum, chat, wiki). I want to change the module instances' names. I found the tables in the db: mdl_forum, mdl_chat and mdl_wiki and I modified the attribute "name". But when I refresh the page http://localhost/moodle/course/view.php?id=2, the module names are still the old one. I clean the browser cache, the problem is still at there. Someone knows how to solve it?

Thank you

Average of ratings: -
In reply to ji min

Re: how to change the module instances' names

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You need to call the Moodle function rebuild_course_cache().

This can be done for a single course (rebuild_course_cache($courseid)) or for all courses on the site (leave out the courseid parameter).

Alternatively, for Moodle 2.5 (or below), you can clear the 'modinfo' and 'sectioncache' fields in mdl_course. For Moodle 2.6 (or above), you could try purging all caches (site admin > developer > purge all caches).