← Back to team overview

mahara-contributors team mailing list archive

[Bug 887400] A change has been merged

 

Reviewed:  https://reviews.mahara.org/836
Committed: http://gitorious.org/mahara/mahara/commit/3d2ccd763cb8603f2c5f3ae03d221495061472bc
Submitter: Francois Marier (francois@xxxxxxxxxxxxxxx)
Branch:    master

commit 3d2ccd763cb8603f2c5f3ae03d221495061472bc
Author: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>
Date:   Tue Nov 8 15:18:28 2011 +1300

    Cache undefined config values in get_config_plugin (bug #887400)
    
    When a plugin config value has not been set, multiple calls to
    get_config_plugin always trigger a db query.  But if it's already
    queried once and found a null result, it should remember that for
    next time.
    
    Change-Id: Id955e0953131b83eba4e36face26bfb4ef828d26
    Signed-off-by: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/887400

Title:
  get_config_plugin does too many queries

Status in Mahara ePortfolio:
  Fix Committed

Bug description:
  The get_config_plugin function fails to remember when a query for a
  particular value returns nothing, and queries the table again on every
  subsequent call.  Also, it can be improved by reading entire
  <plugintype>_config tables (they're very small) instead of just
  reading values for one plugin at a time.

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


References