diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-02-03 02:14:39 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-02-03 02:19:44 +0300 |
| commit | f87c68ea682de3b0545b206557a17affcdf2be3a (patch) | |
| tree | db36be81c24ceda71267bb48020f00049b8b0524 /sub | |
| parent | 687e8cf1ba224c20b8b312c41fd00f891e5f26e4 (diff) | |
Add workflow to clean old GitHub Actions caches
Adds a scheduled GitHub Actions workflow (.github/workflows/cleanup_caches.yml) that runs weekly (and via workflow_dispatch) to delete Actions caches not accessed in the last 3 days. The job uses the gh CLI with the repository token and actions: write permission to list caches, filter by last_accessed_at against a 3-day cutoff, and delete matching cache IDs.
Diffstat (limited to 'sub')
| -rw-r--r-- | sub/subController.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sub/subController.go b/sub/subController.go index 7653a4e1..53b5580b 100644 --- a/sub/subController.go +++ b/sub/subController.go @@ -3,8 +3,8 @@ package sub import ( "encoding/base64" "fmt" - "strings" "strconv" + "strings" "github.com/mhsanaei/3x-ui/v2/config" @@ -64,8 +64,8 @@ func NewSUBController( subEncrypt: encrypt, updateInterval: update, - subService: sub, - subJsonService: NewSubJsonService(jsonFragment, jsonNoise, jsonMux, jsonRules, sub), + subService: sub, + subJsonService: NewSubJsonService(jsonFragment, jsonNoise, jsonMux, jsonRules, sub), } a.initRouter(g) return a @@ -170,13 +170,13 @@ func (a *SUBController) subJsons(c *gin.Context) { // ApplyCommonHeaders sets common HTTP headers for subscription responses including user info, update interval, and profile title. func (a *SUBController) ApplyCommonHeaders( - c *gin.Context, - header, - updateInterval, - profileTitle string, + c *gin.Context, + header, + updateInterval, + profileTitle string, profileSupportUrl string, - profileUrl string, - profileAnnounce string, + profileUrl string, + profileAnnounce string, profileEnableRouting bool, profileRoutingRules string, ) { |
