From 6ae05da6de5ef04a8d19ad5b0da6beefff851bf9 Mon Sep 17 00:00:00 2001 From: code Date: Wed, 9 Sep 2026 18:30:48 +0000 Subject: [PATCH] debug config also drives Twig debug + bypasses static cache MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When debug is true: enable Twig debug mode (dump(), auto_reload, DebugExtension), and stop caching sidecar-less pages — Renderer skips the cache write, the dev router skips serving cache files, and bootstrap clears stale cache on the first request that reaches PHP. Also update docs: new Debug mode section on the config page, cache- opt-out notes (debug + empty index.php sidecar) on the caching page, and correct the Sass build target to App/css/main.css in AGENTS.md and the styling page. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_011FZQHKxu24mvojrJDwhWVS --- AGENTS.md | 5 +++-- novaconium/bootstrap.php | 12 +++++++++++- novaconium/pages/admin/docs/caching/index.twig | 4 ++++ novaconium/pages/admin/docs/config/index.twig | 18 ++++++++++++++++++ novaconium/pages/admin/docs/styling/index.twig | 8 ++++---- novaconium/src/Renderer.php | 16 +++++++++++++++- public/router.php | 12 +++++++++++- 7 files changed, 66 insertions(+), 9 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 3cff845..a1da21b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -191,7 +191,8 @@ except `public/cache/*` and `novaconium/contact-log.txt`. (`php novaconium/bin/