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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2
    • Component/s: Language
    • Labels:
    • Testing Instructions:
      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).
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_22_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-30404-stringcaches

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            mudrd8mz David Mudrák (@mudrd8mz)
            Reporter:
            mudrd8mz David Mudrák (@mudrd8mz)
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Rajesh Taneja
            Participants:
            Component watchers:
            cameron1729, David Mudrák (@mudrd8mz), Helen Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              5/Dec/11