admin/instance: Make the overview page faster

This commit is contained in:
Tom Wiesing 2023-11-10 19:34:12 +01:00
parent 419902c59b
commit 83a3c743e3
No known key found for this signature in database
3 changed files with 2 additions and 15 deletions

View file

@ -1,17 +1,5 @@
<div class="pure-u-1-1">
<p>
Sections
</p>
<div class="pure-button-group" role="group" aria-label="Table Of Contents">
<a class="pure-button pure-button-small" href="#overview">Info &amp; Status</a>
<a class="pure-button pure-button-small" href="#requirements">Drupal Status Report</a>
<a class="pure-button pure-button-small" href="#wisski">WissKI Data</a>
</div>
</div>
<div class="pure-u-1-1">
<h2 id="overview">Info &amp; Status</h2>
<h2 id="overview">Overview</h2>
</div>
<div class="pure-u-1 pure-u-xl-2-5">
<div class="padding">

View file

@ -56,7 +56,7 @@ func (admin *Admin) instance(ctx context.Context) http.Handler {
ic.Instance = instance.Instance
// get some more info about the wisski
ic.Info, err = instance.Info().Information(r.Context(), false)
ic.Info, err = instance.Info().Information(r.Context(), true)
if err != nil {
return ic, nil, err
}

View file

@ -27,7 +27,6 @@ var (
)
// Information fetches information about this WissKI.
// TODO: Rework this to be able to determine what kind of information is available.
func (wisski *Info) Information(ctx context.Context, quick bool) (info status.WissKI, err error) {
// setup flags
flags := ingredient.FetcherFlags{