Bug description
Using logged_in condition inside nocache tags causes memory usage to get bigger and bigger
nocache tags files (storage/framework/views/nocache) are created on every page request and get never cleaned.
How to reproduce
Add a collection with entries.
{{ collection from="your_collection" }}
{{ title|wrap:h2 }}
{{ nocache }}
{{ if logged_in }}Logged in{{ else }}Logged out{{ /if }}
{{ /nocache }}
{{ /collection }}





Logs
No response
Environment
Environment
Application Name: Statamic
Laravel Version: 9.39.0
PHP Version: 8.0.16
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
runtime (new)
Additional details
No response
Bug description
Usinglogged_incondition insidenocachetags causes memory usage to get bigger and biggernocachetags files (storage/framework/views/nocache) are created on every page request and get never cleaned.How to reproduce
Add a collection with entries.
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
runtime (new)
Additional details
No response