1. 12 Dec, 2017 1 commit
    • Marcus Boon's avatar
      MDL-59866 session: Add retry for redis sessions · f8e2383b
      Marcus Boon authored
      There is an edge case whereby redis will fail
      to accept connections on the first try but
      retrying the connection seems to make it work
      
      Included in this commit:
      * Retry functionality in the session init
      f8e2383b
  2. 06 Dec, 2017 3 commits
  3. 04 Dec, 2017 2 commits
    • Marina Glancy's avatar
      65a77c73
    • Eloy Lafuente's avatar
      MDL-59159 upgrade: clean < 3.1.0 upgrade steps · e4eba4c3
      Eloy Lafuente authored
      LTS (3.5) requires previous LTS (3.1)
      
      This just deletes all the upgrade steps previous to 3.1.0. Some
      small adjustments, like adding missing MOODLE_INTERNAL or tweaking
      globals can also be applied when needed.
      
      Also includes an upgrade step to prevent upgrading from any
      version < 2016052300 (v3.1.0) as anti-cheating measure.
      
      Next commit will get rid of/deprecate all the upgradelib functions
      not used anymore in codebase.
      e4eba4c3
  4. 02 Dec, 2017 1 commit
  5. 30 Nov, 2017 1 commit
  6. 29 Nov, 2017 1 commit
    • Damyon Wiese's avatar
      MDL-60925 theme: Fix SCSS precompilation. · b3480499
      Damyon Wiese authored
      There is no point pre-compiling the theme SCSS if it is not stored somewhere that is available
      to all webserving nodes. Localcache needs to be backed by the MUC cache.
      b3480499
  7. 28 Nov, 2017 1 commit
  8. 27 Nov, 2017 4 commits
    • sam marshall's avatar
      MDL-60174 core_dml: fix miscellaneous incorrect recordset usage · a938e409
      sam marshall authored
      The new recordset support for Postgres requires transactions and
      will cause errors if recordsets are not closed correctly. This
      commit fixes problems that were identified during unit tests, and
      via some basic code analysis, across all core code. Most of these
      are incorrect usage of recordset (forgetting to close them).
      a938e409
    • sam marshall's avatar
      MDL-60174 core_dml: get_recordset on Postgres eats all the RAM · ed00d67c
      sam marshall authored
      On Postgres, get_recordset_sql loads all the results into memory
      (within the Postgres library, which doesn't count towards the PHP
      memory limit, but does count towards making your server run out of
      memory) as soon as the query completes.
      
      This commit changes the code to use cursors, which in Postgres
      allow the results to be returned in smaller chunks (by default
      100,000 rows).
      ed00d67c
    • Mark Nelson's avatar
    • Shamim Rezaie's avatar
      MDL-60188 groups: cache user's groups and groupings · 0897d658
      Shamim Rezaie authored
      The function groups_get_user_groups is called too often both before rendering the page and after the page is rendered (using ajax).
      The function was executing a query joining 3 tables in each call. The plementation of the function has now modified to store the
      query result in a request cache.
      0897d658
  9. 24 Nov, 2017 2 commits
  10. 22 Nov, 2017 2 commits
  11. 21 Nov, 2017 2 commits
  12. 17 Nov, 2017 5 commits
  13. 15 Nov, 2017 1 commit
  14. 14 Nov, 2017 1 commit
  15. 13 Nov, 2017 1 commit
  16. 10 Nov, 2017 4 commits
  17. 08 Nov, 2017 2 commits
  18. 07 Nov, 2017 3 commits
  19. 06 Nov, 2017 2 commits
    • sam marshall's avatar
      MDL-60671 core_search: Cron output should use mtrace · 11e60032
      sam marshall authored
      The mtrace function is preferable for plain text logging/progress
      output because it can be redirected if necessary. By convention it
      is normally used in cron and can be used in CLI tasks if required.
      
      This change makes the text_progress_trace class use mtrace instead
      of echo and then flush. (Default behaviour of mtrace is to do
      exactly that, but it can be redirected too.)
      
      Before this change, if anybody is relying on mtrace behaviour to
      redirect logs of cron output, this will fail for some parts of the
      search cron output (and some other places like auth plugins).
      11e60032
    • jun's avatar
  20. 05 Nov, 2017 1 commit