-
Notifications
You must be signed in to change notification settings - Fork 0
Glob Metadata Cache
Leonard Ramminger edited this page Aug 9, 2026
·
1 revision
The glob metadata cache is an in-memory cache for glob pattern expansion results. It lasts for one Beez process (one CLI invocation).
Expanding globs like src/**/*.cpp can be expensive in large trees. Beez may expand the same patterns many times per run:
- Step cache input collection
- Success cache file lists via
ctx.glob() - Output resolution after steps complete
The metadata cache stores (pattern, project_root) -> [matching paths] for the duration of the run.
performance = {
cache_fs_metadata = true, -- default
}When false, every glob expansion hits the filesystem fresh.
| Property | Value |
|---|---|
| Persistence | None (cleared when beez exits) |
| Shared across steps | Yes, within one run |
Affected by --no-cache
|
No (this is not step/success cache) |
Disabling cache_fs_metadata does not disable step or success cache. It only removes this per-run optimization.
| Situation | Suggestion |
|---|---|
| Debugging glob behavior | cache_fs_metadata = false |
| Files created mid-run outside Beez | Rare edge case; disable if stale glob results appear |
| Normal use | Leave enabled |
Step cache uses file content hashes and mtime/size stamps for invalidation. Glob metadata cache only avoids repeated directory walks. It does not cause stale step cache hits on its own.
- Performance Settings
- Step Cache - input stamp matching
- Caching Overview
Quick Reference · Glossary · FAQ
- Fundamentals
- Core Concepts
- Project Layout
- First Pipeline
- Phases and Scopes
- How Phases and Scopes Work
- Selecting with Phases and Scopes
- Designing Phases and Scopes
- Parallel Execution and Dependencies
- Configuration
- Configuration Overview
- Global User Config
- Project Config
- Environment Variables
- Performance Settings
- Cache Settings
- Config Reference
- CLI
- CLI Overview
- Running Targets
- Filtering by Phase
- Running a Single Step
- Listing Entities
- Output and Logging Flags
- Cache and Maintenance Flags
- Meta and Utility Commands
-
Project Scaffolding —
beez --init(embedded Tempify) - CLI Flag Reference
- Lua DSL
- DSL Overview
- Plugin System — Plugins, Config DSL, Standard-Workflows
- Step Declaration
- Task Declaration
- Workflow Declaration
- Order Declaration
- Configure Step
- ReqPack Declaration
- Beez API
- Step Context
- DSL Patterns
- Caching
- Caching Overview
- Step Cache
- Success Cache
- Glob Metadata Cache
- Artifact Patterns
- Cache Keys and Invalidation
- Cache Storage and Maintenance
- Caching Troubleshooting
- UI and Output
- Output Modes
- Progress and Animation
- Colors and Themes
- Run Summaries
- Logging and Log Files
- Development and Contribution
- Building and Setup
- Repository Layout
- Testing
- Code Quality
- Feature Development Workflow
- Submitting Changes