mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #58833
[Bug 1884346] Re: function cron_check_for_updates takes too long to run
Ah - I added the check for the mahara manual link - which is on every
page ;(
So yep setting this to be a session variable will avoid this and any
future places calling that function from doing curl requests too much
** Changed in: mahara
Importance: Undecided => High
** Changed in: mahara
Status: New => Fix Committed
--
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 Committed
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