MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / _clearInternalCache

Method _clearInternalCache

graphs/data/fitRemoteReps/graph.py:37–44  ·  view source on GitHub ↗
(self, reason, extraData)

Source from the content-addressed store, hash-verified

35 self._timeCache = TimeCache()
36
37 def _clearInternalCache(self, reason, extraData):
38 # Here, we care only about fit changes, graph changes and option switches
39 # - Input changes are irrelevant as time cache cares only about
40 # time input, and it regenerates once time goes beyond cached value
41 if reason in (GraphCacheCleanupReason.fitChanged, GraphCacheCleanupReason.fitRemoved):
42 self._timeCache.clearForFit(extraData)
43 elif reason == GraphCacheCleanupReason.graphSwitched:
44 self._timeCache.clearAll()
45
46 # UI stuff
47 internalName = 'remoteRepsGraph'

Callers

nothing calls this directly

Calls 2

clearForFitMethod · 0.80
clearAllMethod · 0.80

Tested by

no test coverage detected