Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Libraries, Performance
    • Labels:
    • Affected Branches:
      MOODLE_23_STABLE

      Description

      Current situation:

      Type of data: User-entered texts all over Moodle, after filters have been applied and converted to HTML
      Data structure: One simple HTML text, keyed by MD5 of original text concatenated a variety of params like context, filter settings, language etc
      When it gets stored: At the first time the text is displayed
      Where it gets stored: In table cache_text
      How it gets read: Next time the text is displayed, if within the $CFG->cachetext timeout period
      Does it need locking: No
      How it gets cleared: Cron job cleans anything older than $CFG->cachetext
      Typical sizes: 1k
      Safeguards in place (eg limits): None

      Bonus caching within this caching:

      A static variable $croncache[$md5key] = $text; is being used during CLI operations only (eg cron) to store the last 150 texts. MDL-13310

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moodle.com moodle.com
              Reporter:
              dougiamas Martin Dougiamas
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: