mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #58830
[Bug 1884346] [NEW] function cron_check_for_updates takes too long to run
Public bug reported:
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.
** Affects: mahara
Importance: Undecided
Assignee: Cecilia Vela Gurovic (ceciliavg)
Status: New
** Changed in: mahara
Milestone: None => 20.10.0
** Changed in: mahara
Assignee: (unassigned) => Cecilia Vela Gurovic (ceciliavg)
--
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:
New
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
Follow ups