Skip to main content

Module cache

Module cache 

Source
Expand description

Install record cache <plugins>/.plugins.json.

This file is for speed and display only, never a source of truth — the source of truth is always the manifest in each plugin dir. If the cache is lost or corrupt, list() rebuilds from disk.

Structs§

Index
Contents of .plugins.json.
IndexEntry
One install record.

Enums§

InstallSource
How a plugin got installed.

Constants§

CACHE_VERSION
Current cache schema version.

Functions§

now_unix
Current Unix seconds. Returns 0 when the system time is unavailable — a wrong timestamp beats a failed install.