Caching
Twig cache, OPcache, docs cache, and cache management in admin panel.
⚡ Caching
apidcms caches compiled Twig templates to speed up page loads.
When to Clear
After any template changes:
- Admin panel → Cache → "Clear Cache"
- Refresh the site page
What Is Cached
- Compiled
.phpTwig template files (admin/app/views/cache/) - CSS (browser cache, controlled via
custom_css_version)
Where It Is
admin/app/views/cache/ # Twig cache
storage/cache/ # general cache
Auto-reload
In development mode (auto_reload: true in config), Twig checks for changes automatically.
In production — clear the cache manually after edits.
CSS Versioning
To make browsers pick up new CSS after changes to custom.css:
- Increment
custom_css_versioninsystem_settings - Clear the cache
The base.html.twig template uses ?v={{ get_setting('custom_css_version') }} — the browser sees a new version and reloads the file.