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

assignfeedback_editpdf needlessly generates test images

    XMLWordPrintable

    Details

      Description

      The is_enabled() function in editpdf does a call to the test_gs_path function to check and see if ghostscript is available. The test by default attempts to generate an image to check ghostscript is working. Since this function is called multiple times when viewing a list of submissions, this ends up adding a fair amount of overhead to the page load time.

      There is also no need to be generating test images every time, certainly not when users are just viewing assign pages. During plugin install, when using the testgs script in the plugin and unit tests should suffice.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/May/14