Skip to main content

Module hook_cache

Module hook_cache 

Source
Expand description

Small hot-path helpers for lifecycle hooks.

The cache prevents repeated rule injections for the same file and event kind within a short window. It is deliberately advisory: any IO or parse failure returns “do not skip” so hooks keep working.

Functions§

remember_injection
should_skip_recent
should_skip_recent_for_project_hash