Helper function to invalidate process cache
()
| 2908 | |
| 2909 | // Helper function to invalidate process cache |
| 2910 | func invalidateProcessCache() { |
| 2911 | psCache.mutex.Lock() |
| 2912 | psCache.lines = nil |
| 2913 | psCache.timestamp = time.Time{} |
| 2914 | psCache.mutex.Unlock() |
| 2915 | } |
| 2916 | |
| 2917 | // handleUpdateCheck handles GET requests to check for updates |
| 2918 | func handleUpdateCheck(w http.ResponseWriter, r *http.Request) { |
no outgoing calls
no test coverage detected