You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This relates to #9343 -- and it relates to some cleanups I'm doing in this department.
Currently, when doing a .File.Lang you will always get a lang. After this change, you will only get a .Lang if the file is configured with it (either in the filename or the file mount).
We need less magic in Hugo.
Note that $page.Lang will still always get a value.
The text was updated successfully, but these errors were encountered:
TODO(bep) improve commit message.
Hugo has always been a active user of in-memory caches, but before this commit we did nothing to control the memory usage.
One failing example would be loading lots of big JSON data files and unmarshal them via `transform.Unmarshal`.
This commit consolidates all these caches into one single LRU cache with an eviction strategy that also considers used vs. available memory.
Hugo will try to limit its memory usage to 1/4 or total system memory, but this can be controlled with the `HUGO_MEMORYLIMIT` environment variable (a float value representing Gigabytes).
A natural next step after this would be to use this cache for `.Content`.
Fixesgohugoio#8307Fixesgohugoio#8498Fixesgohugoio#8927Fixesgohugoio#9192Fixesgohugoio#9189Fixesgohugoio#7425Fixesgohugoio#7437Fixesgohugoio#7436Fixesgohugoio#7882
Updates gohugoio#7544Fixesgohugoio#9224Fixesgohugoio#9324Fixesgohugoio#9352Fixesgohugoio#9355Fixesgohugoio#9343
bep
added a commit
to bep/hugo
that referenced
this issue
Jan 9, 2022
TODO(bep) improve commit message.
Hugo has always been a active user of in-memory caches, but before this commit we did nothing to control the memory usage.
One failing example would be loading lots of big JSON data files and unmarshal them via `transform.Unmarshal`.
This commit consolidates all these caches into one single LRU cache with an eviction strategy that also considers used vs. available memory.
Hugo will try to limit its memory usage to 1/4 or total system memory, but this can be controlled with the `HUGO_MEMORYLIMIT` environment variable (a float value representing Gigabytes).
A natural next step after this would be to use this cache for `.Content`.
Fixesgohugoio#8307Fixesgohugoio#8498Fixesgohugoio#8927Fixesgohugoio#9192Fixesgohugoio#9189Fixesgohugoio#7425Fixesgohugoio#7437Fixesgohugoio#7436Fixesgohugoio#7882
Updates gohugoio#7544Fixesgohugoio#9224Fixesgohugoio#9324Fixesgohugoio#9352Fixesgohugoio#9355Fixesgohugoio#9343
This relates to #9343 -- and it relates to some cleanups I'm doing in this department.
Currently, when doing a
.File.Lang
you will always get a lang. After this change, you will only get a.Lang
if the file is configured with it (either in the filename or the file mount).We need less magic in Hugo.
Note that
$page.Lang
will still always get a value.The text was updated successfully, but these errors were encountered: