From 0cc5d70afcf860953d2187f7ecec6d90350a9a4f Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 10 Oct 2024 11:45:37 +0800 Subject: [PATCH] =?UTF-8?q?Feat:=20=E5=A2=9E=E5=8A=A0=20HTTP=20=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/development/HTTPCache.toml | 11 +++++++++++ config/development/params.toml | 2 +- go.mod | 4 ++-- go.sum | 8 ++++---- 4 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 config/development/HTTPCache.toml diff --git a/config/development/HTTPCache.toml b/config/development/HTTPCache.toml new file mode 100644 index 0000000..4d5e693 --- /dev/null +++ b/config/development/HTTPCache.toml @@ -0,0 +1,11 @@ + +[cache] + [cache.for] + includes = ['https://api.github.com/repos/**'] + # excludes = ['**'] +[[polls]] + disable = true + high = '0s' + low = '0s' + [polls.for] + includes = ['**'] \ No newline at end of file diff --git a/config/development/params.toml b/config/development/params.toml index 4c514e1..0e143c0 100644 --- a/config/development/params.toml +++ b/config/development/params.toml @@ -24,4 +24,4 @@ # Content adapters config for component projects # https://github.com/hugo-fixit/component-projects [projectsAdapters] - enable = false \ No newline at end of file + # enable = false \ No newline at end of file diff --git a/go.mod b/go.mod index 8706497..4c6f4a1 100644 --- a/go.mod +++ b/go.mod @@ -4,9 +4,9 @@ go 1.20 require ( github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7 // indirect - github.com/hugo-fixit/FixIt v0.3.13-0.20241006035741-19ceeb2e999c // indirect + github.com/hugo-fixit/FixIt v0.3.13-0.20241010025701-f738e4a92699 // indirect github.com/hugo-fixit/cmpt-mdevtools v1.0.1 // indirect - github.com/hugo-fixit/component-projects v1.3.1 // indirect + github.com/hugo-fixit/component-projects v1.3.2 // indirect github.com/hugo-fixit/hugo-json-feed v1.0.2 // indirect github.com/hugo-fixit/shortcode-caniuse v1.1.3 // indirect github.com/hugo-fixit/shortcode-docs-bookmark v1.0.3 // indirect diff --git a/go.sum b/go.sum index 77a48a8..19c9d51 100644 --- a/go.sum +++ b/go.sum @@ -1,11 +1,11 @@ github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7 h1:G0A3HBcU7zu/FZPEVlzexO4GBNs1CAUVNwoRkekUbdU= github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7/go.mod h1:6vXHaAZv1p9meW2mZ5KmlWlu5W9YiIpUTkHGWwkp3Pk= -github.com/hugo-fixit/FixIt v0.3.13-0.20241006035741-19ceeb2e999c h1:MRiQOuHiqd97ZY6VuNCX9Qyet4m7vC8LxYEuC+HLRbs= -github.com/hugo-fixit/FixIt v0.3.13-0.20241006035741-19ceeb2e999c/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU= +github.com/hugo-fixit/FixIt v0.3.13-0.20241010025701-f738e4a92699 h1:nGvayxHiFDRdF8dJi7ZCyQbVM4yPq+/DKYQllDKDxkI= +github.com/hugo-fixit/FixIt v0.3.13-0.20241010025701-f738e4a92699/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU= github.com/hugo-fixit/cmpt-mdevtools v1.0.1 h1:IdUhqO1ktKsJF5D0ReU37PU2CQCpgjY4EFFQ0S69sKQ= github.com/hugo-fixit/cmpt-mdevtools v1.0.1/go.mod h1:+1tfeT4ugFNa1kx/3yQF0NUup2Fejiq7EwvrpcY2xWw= -github.com/hugo-fixit/component-projects v1.3.1 h1:xJnmnyWHHMGuvYlY5auehobbn5yFdF5zSsnL/lUOuuo= -github.com/hugo-fixit/component-projects v1.3.1/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c= +github.com/hugo-fixit/component-projects v1.3.2 h1:okOA8ow0/T7yk8I5oen7OofJAbY6VrngGsFbqPozTWs= +github.com/hugo-fixit/component-projects v1.3.2/go.mod h1:nXW0R37REwpfwUD1I4RtB5QW71vw66nRyB9uEpYxr+c= github.com/hugo-fixit/hugo-json-feed v1.0.2 h1:xZABGHuoX/u0hnoF5AoP7ane7l9T7UNmlOAiFdWvBvA= github.com/hugo-fixit/hugo-json-feed v1.0.2/go.mod h1:ystvqmSnWdkU0aBybKKNztj8P1ViY6AhMaK/bsBL9uw= github.com/hugo-fixit/shortcode-caniuse v1.1.3 h1:U1YBJz5SI/d1BBQhHcD0eVgJdCcpzK2usSizPiu+a4w=