SetSignatureCacheEnabled switches Antigravity signature handling between cache mode and bypass mode.
(enabled bool)
| 307 | |
| 308 | // SetSignatureCacheEnabled switches Antigravity signature handling between cache mode and bypass mode. |
| 309 | func SetSignatureCacheEnabled(enabled bool) { |
| 310 | previous := signatureCacheEnabled.Swap(enabled) |
| 311 | if previous == enabled { |
| 312 | return |
| 313 | } |
| 314 | if !enabled { |
| 315 | log.Info("antigravity signature cache DISABLED - bypass mode active, cached signatures will not be used for request translation") |
| 316 | } |
| 317 | } |
| 318 | |
| 319 | // SignatureCacheEnabled returns whether signature cache validation is enabled. |
| 320 | func SignatureCacheEnabled() bool { |