Cache
Nubo caches parsed .nubo server files to avoid re-tokenizing and re-parsing the same file on every request.
What Is Cached
Section titled “What Is Cached”The server caches parsed AST nodes for executable .nubo files.
app/ index.nuboWhen / is requested, index.nubo is parsed and cached.
Cache Duration
Section titled “Cache Duration”The cache duration is 5 minutes.
After 5 minutes, Nubo parses the file again.
File Hash Validation
Section titled “File Hash Validation”Nubo hashes the file content.
If the file changes, the hash changes and the cache is ignored.
That means a cached file is reused only when:
| Condition | Required |
|---|---|
| Cache entry exists | yes |
| File hash matches | yes |
| Cache has not expired | yes |
Development Mode
Section titled “Development Mode”When serving a directory in development mode, Nubo reloads the router on each request.
nubo serve app --devThis helps route file changes become visible while developing.
Cache Logs
Section titled “Cache Logs”In development request logs, cached responses may be shown with:
[cached]