mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 14:55:18 -04:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user