hugo/hugofs
Bjørn Erik Pedersen 29ccb36069 Fix /static performance regression from Hugo 0.103.0
In `v0.103.0` we added support for `resources.PostProcess` for all file types, not just HTML. We had benchmarks that said we were fine in that department, but those did not consider the static file syncing.

This fixes that by:

* Making sure that the /static syncer always gets its own file system without any checks for the post process token.
* For dynamic files (e.g. rendered HTML files) we add an additional check to make sure that we skip binary files (e.g. images)

Fixes #10328
2022-09-26 19:02:25 +02:00
..
files Misc depreation updates 2022-01-04 17:10:39 +01:00
glob Consolidate the glob case logic 2022-09-23 16:19:21 +02:00
createcounting_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
decorators.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
fileinfo.go postcss: Fix import error handling 2022-05-15 20:25:25 +02:00
fileinfo_test.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
filename_filter_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
filename_filter_fs_test.go hugofs: Add includeFiles and excludeFiles to mount configuration 2021-10-20 05:00:17 +02:00
filter_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
filter_fs_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
fs.go Fix /static performance regression from Hugo 0.103.0 2022-09-26 19:02:25 +02:00
fs_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
glob.go Consolidate the glob case logic 2022-09-23 16:19:21 +02:00
glob_test.go Consolidate the glob case logic 2022-09-23 16:19:21 +02:00
hasbytes_fs.go Fix /static performance regression from Hugo 0.103.0 2022-09-26 19:02:25 +02:00
hashing_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
hashing_fs_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
language_merge.go Replace all usage of CopyOnWriteFs with OverlayFs 2022-04-10 13:49:31 +02:00
noop_fs.go Replace all usage of CopyOnWriteFs with OverlayFs 2022-04-10 13:49:31 +02:00
nosymlink_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
nosymlink_test.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
rootmapping_fs.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
rootmapping_fs_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
slice_fs.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
stacktracer_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
walk.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
walk_test.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00