Thursday, April 26, 2012

Moodle and Caching

Moodle caches a lot. 

If you make a change to a string somewhere in a plugin, for example, and want to ensure that the change is working or to see it in context, perform these steps.

  1. Log in as administrator
  2. Open the php file to make the change to the string, probably in the lang\en folder
  3. Save the file
  4. Update the version.php #
  5. Click on the notifications link (only admin role can see this link)
  6. Update the plugin.
  7. DUMP THE SITE WIDE CACHE - Admin | Development | Purge all Caches

This is what it moodle says about caching:














Notice the comment about language strings and that the site will appear slower, at first, as it has to request new data for all its cache pools.

No comments:

Post a Comment