Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30404

Ability to quickly purge strings caches even when langimport tool is disabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.2
    • 2.1.2
    • Language
    • MOODLE_21_STABLE
    • MOODLE_22_STABLE
    • MDL-30404-stringcaches
    • Hide

      1. In your config.php, declare $CFG->skiplangupgrade = true;
      2. Go to your moodledata directory
      3. Remove the lang directory if it is present
      4. Fetch the lang directory from the Git repository. Make sure that the web server process can read the files there.

      • git clone git://github.com/amosbot/moodle-langpacks.git lang
      • cd lang
      • git checkout -b MOODLE_22_STABLE origin/MOODLE_22_STABLE

      5. Visit Site administration > Language > Language packs
      6. TEST: Make sure you can't update lang packs via web now
      7. TEST: Make sure you can purge caches via a button there
      8. TEST: Make sure you can purge caches by executing admin/cli/purge_caches.php

      Hint: there are several ways how to check if the caches are purged. For example, the file moodledata/cache/languages should be removed each time you purge the cache and recreated each time you reload a page (unless you have $CFG->langcache set to 0).

      Show
      1. In your config.php, declare $CFG->skiplangupgrade = true; 2. Go to your moodledata directory 3. Remove the lang directory if it is present 4. Fetch the lang directory from the Git repository. Make sure that the web server process can read the files there. git clone git://github.com/amosbot/moodle-langpacks.git lang cd lang git checkout -b MOODLE_22_STABLE origin/MOODLE_22_STABLE 5. Visit Site administration > Language > Language packs 6. TEST: Make sure you can't update lang packs via web now 7. TEST: Make sure you can purge caches via a button there 8. TEST: Make sure you can purge caches by executing admin/cli/purge_caches.php Hint: there are several ways how to check if the caches are purged. For example, the file moodledata/cache/languages should be removed each time you purge the cache and recreated each time you reload a page (unless you have $CFG->langcache set to 0).

      Moodle language packs are now available at https://github.com/amosbot/moodle-langpacks and some sites might prefer updating lang packs from that Git repository instead of using the langimport tool manually. To do so, we need to provide a way how string caches can be purged easily and from the CLI.

            mudrd8mz David Mudrák (@mudrd8mz)
            mudrd8mz David Mudrák (@mudrd8mz)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.