Cache variables in core._cache so that we can retrieve them all in a

single query.  In most cases, we were fetching 4-5 variables per page
load, so this is 2-3x faster.
This commit is contained in:
Bharat Mediratta
2009-05-14 03:56:29 +00:00
parent aaff4a7886
commit 627e83adc1
5 changed files with 53 additions and 27 deletions
@@ -17,6 +17,7 @@
<th> <?= t("Value") ?></th>
</tr>
<? foreach ($vars as $var): ?>
<? if ($var->module_name == "core" && $var->name == "_cache") continue ?>
<tr class="setting">
<td> <?= $var->module_name ?> </td>
<td> <?= $var->name ?> </td>