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

Cache strings and templates in browser storage (localstorage)

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 2.9
    • 2.9
    • JavaScript
    • MOODLE_29_STABLE
    • MOODLE_29_STABLE
    • MDL-49604-master
    • 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.

    Description

      Use a AMD library to hide browser differences.

      Attachments

        Activity

          People

            damyon Damyon Wiese
            damyon Damyon Wiese
            Dan Poltawski Dan Poltawski
            Andrew Lyons Andrew Lyons
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Clockify

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