-
-
Notifications
You must be signed in to change notification settings - Fork 600
Closed
Description
Bug description
Expected Behaviour
If the cache tag is disabled, the content should be rendered uncached.
.env
STATAMIC_CACHE_TAGS_ENABLED=falseview.blade.php
<statamic:cache scope="page">
{{ now()->format('Y-m-d H:i:s') }}
</statamic:cache>This should always return the current time.
Actual Behaviour
If the cache tag is disabled, the content of the tag will be empty.
How to reproduce
- Create a new project:
statamic new mysite statamic/starter-kit-cool-writings - Change a view from antlers to blade (e.g.
index.blade.php) and paste the following code:
<statamic:cache scope="page">
{{ now()->format('Y-m-d H:i:s') }}
</statamic:cache>- Add
STATAMIC_CACHE_TAGS_ENABLED=falseto the.env - Open the edited view. The content of the cache tag will be empty.
Logs
Environment
Environment
Application Name: Statamic
Laravel Version: 12.31.1
PHP Version: 8.3.22
Composer Version: 2.8.9
Environment: local
Debug Mode: ENABLED
URL: mysite.test
Maintenance Mode: OFF
Timezone: UTC
Locale: en
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file
Storage
public/storage: NOT LINKED
Statamic
Addons: 0
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 5.x-dev SoloInstallation
Fresh statamic/statamic site via CLI
Additional details
No response