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

Cache strings and templates in browser storage (localstorage)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9
    • Fix Version/s: 2.9
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide

      Put the test.php script in your moodle root.

      Load the page in a browser - open the debugging tools.

      Verify that if cachejs is disabled, there are always 2 calls to service.php each time the page is reloaded.

      Verify that if cachejs is enabled, after the first page load, any subsequent reload will not trigger 2 calls to service.php (but the same result gets logged to the console).

      Verify that with cachejs enabled, purging caches will cause the next page load to trigger 2 calls to service.php.

      Show
      Put the test.php script in your moodle root. Load the page in a browser - open the debugging tools. Verify that if cachejs is disabled, there are always 2 calls to service.php each time the page is reloaded. Verify that if cachejs is enabled, after the first page load, any subsequent reload will not trigger 2 calls to service.php (but the same result gets logged to the console). Verify that with cachejs enabled, purging caches will cause the next page load to trigger 2 calls to service.php.
    • Affected Branches:
      MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_29_STABLE
    • Epic Link:
    • Pull from Repository:
    • Pull Master Branch:
      MDL-49604-master

      Description

      Use a AMD library to hide browser differences.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/May/15