← Back to team overview

mahara-contributors team mailing list archive

[Bug 1884346] Re: function cron_check_for_updates takes too long to run

 

** Changed in: mahara
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1884346

Title:
  function cron_check_for_updates takes too long to run

Status in Mahara:
  Fix Released

Bug description:
  It's unlikely that the mahara.org mahara version will change very
  often, and we are calling the function cron_check_for_updates
  constantly (everytime we load a page, when loading a modal, etc) to
  see if the mahara version has change.

  Everytime this function is called when using the site (not by cron
  job), it executes a mahara_http_request that will take a bit more than
  2 seconds, making the mahara instance work slower than it should.

  If this data doesn't change that often we can save this value in the
  $SESSION variable so the mahara_http_request is not being called all
  the time.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1884346/+subscriptions


References