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

Improve cacheability of assignfeedback_editpdf/stamps

    XMLWordPrintable

    Details

      Description

      Today we had 40k requests like this:

      /pluginfile.php/12345/assignfeedback_editpdf/stamps/12345/tick.png

      Almost all of them are unique urls (31k urls) with different ids for each assignment activity and I think possibly for each individual assignment. As far as I can tell these 40k urls map to 4 unique stamps: smile, sad, tick, cross.

      Proposing:

      1) These all map to the same urls so they get cached

      2) All 'stamp' files are served as public cache control immutable so varnish / cdn's can serve these instead of hitting php land

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            brendanheywood Brendan Heywood
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: