Comment 2 for bug 1364703

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/3618
Committed: http://gitorious.org/mahara/mahara/commit/6bc4db12bcbcb71d563946f650960e478edd300a
Submitter: Robert Lyon (<email address hidden>)
Branch: master

commit 6bc4db12bcbcb71d563946f650960e478edd300a
Author: Nigel Cunningham <email address hidden>
Date: Mon Aug 4 10:20:39 2014 +1000

(Bug1364703) Add caching to ArtefactType::get_plugin_name

Add caching of results to ArtefactType::get_plugin_name.
In a test export of 1000 users via admin/users/bulkexport.php,
this patch reduced the number of calls to get_field from 78,000
to 26 and reduced the execution time from 115 seconds to 92 seconds.

Change-Id: Ie7b2e39089bed1c3cd4844748b21f1ffb251f8dd
Signed-off-by: Nigel Cunningham <email address hidden>