Skip to content

Latest commit

 

History

History
94 lines (79 loc) · 1.77 KB

File metadata and controls

94 lines (79 loc) · 1.77 KB

COOLForge Cache Sync

Synchronizes the local registry cache with Level.io data.

Flow

+--------------------+
| Launcher Start     |
+--------+-----------+
         |
         v
+--------------------+
| Load Level.io Vars |
| (API Key, Scratch  |
|  Folder)           |
+--------+-----------+
         |
         v
+--------------------+
| Download MD5SUMS   |
| & Verify Library   |
+--------+-----------+
         |
         v
+--------------------+
| Import COOLForge   |
| Common Module      |
+--------+-----------+
         |
         v
+--------------------+
| Invoke-Script      |
| Launcher           |
+========+===========+
         |
   SCRIPT: Queries API
   for device data,
   updates registry
   cache, clears stale
         |
         v
+--------------------+
| Query Level.io     |
| API for Device     |
| Data               |
+--------+-----------+
         |
         v
+--------------------+
| Update Registry    |
| Cache Values       |
+--------+-----------+
         |
         v
+--------------------+
| Clear Stale        |
| Entries            |
+--------+-----------+
         |
         v
+--------------------+
|  Exit 0            |
+--------------------+

Purpose

Refreshes cached device information, tags, and custom field values stored in the local registry.

Features

  • Updates cached device tags
  • Refreshes custom field values
  • Clears stale cache entries

Exit Codes

Code Meaning
0 Cache sync completed
1 Sync failed

Requirements

  • Level.io API key

Usage

Deploy via Level.io automation. Run periodically to keep cache fresh.

Related