Comment 3 for bug 887400

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

Reviewed: https://reviews.mahara.org/835
Committed: http://gitorious.org/mahara/mahara/commit/b2e348702b5c9d77be08282260342b49376465ba
Submitter: Francois Marier (<email address hidden>)
Branch: master

commit b2e348702b5c9d77be08282260342b49376465ba
Author: Richard Mansfield <email address hidden>
Date: Tue Nov 8 14:39:18 2011 +1300

    Read entire _config table on call to get_config_plugin (bug #887400)

    get_config_plugin only pulls in records from the given plugin, but it
    might as well read the entire (tiny) table, so that for example the
    following two calls result in one query rather than two:
     get_plugin_config('artefact', 'internal', 'profilemandatory')
     get_plugin_config('artefact', 'file', 'defaultquota')

    Change-Id: I28d74179330178a40d4787bdb9e8e4ed1e0a0e60
    Signed-off-by: Richard Mansfield <email address hidden>