From 28733248983c1afc1e4e15dfc30fcf4c442e6ca4 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Fri, 2 Feb 2024 16:00:48 +0100 Subject: Misc resource fixes/improvements * Add --pprof flag to server to enable profile debugging. * Don't cache the resource content, it seem to eat memory on bigger sites. * Keep --printMemoryUsag running in server Fixes #11974 --- hugolib/rebuild_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hugolib/rebuild_test.go') diff --git a/hugolib/rebuild_test.go b/hugolib/rebuild_test.go index d3ac5665d..74b04fe01 100644 --- a/hugolib/rebuild_test.go +++ b/hugolib/rebuild_test.go @@ -101,10 +101,10 @@ func TestRebuildEditTextFileInBranchBundle(t *testing.T) { func TestRebuildRenameTextFileInLeafBundle(t *testing.T) { b := TestRunning(t, rebuildFilesSimple) - b.AssertFileContent("public/mysection/mysectionbundle/index.html", "My Section Bundle Text 2 Content.") + b.AssertFileContent("public/mysection/mysectionbundle/index.html", "My Section Bundle Text 2 Content.", "Len Resources: 2|") b.RenameFile("content/mysection/mysectionbundle/mysectionbundletext.txt", "content/mysection/mysectionbundle/mysectionbundletext2.txt").Build() - b.AssertFileContent("public/mysection/mysectionbundle/index.html", "mysectionbundletext2", "My Section Bundle Text 2 Content.") + b.AssertFileContent("public/mysection/mysectionbundle/index.html", "mysectionbundletext2", "My Section Bundle Text 2 Content.", "Len Resources: 2|") b.AssertRenderCountPage(3) b.AssertRenderCountContent(3) } -- cgit v1.2.3