MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / ClearAPICache

Method ClearAPICache

internal/ui/components/app.go:608–619  ·  view source on GitHub ↗

ClearAPICache clears cached API responses.

()

Source from the content-addressed store, hash-verified

606
607// ClearAPICache clears cached API responses.
608func (a *App) ClearAPICache() {
609 if a.isGroupMode {
610 clients := a.groupManager.GetAllClients()
611 for _, pc := range clients {
612 if pc.Client != nil {
613 pc.Client.ClearAPICache()
614 }
615 }
616 } else {
617 a.client.ClearAPICache()
618 }
619}
620
621// getClientForVM returns the appropriate API client for a VM.
622// In group mode, it returns the client for the VM's source profile.

Callers 9

deleteBackupMethod · 0.45
installScriptMethod · 0.45
refreshMetricsMethod · 0.45

Calls 1

GetAllClientsMethod · 0.80

Tested by

no test coverage detected