You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have had some complaints of our site caches not expiring, after digging into it a bit I found that us using a string duration interval is making the cache not have an end date.
Basic blitz.php config file
<?php
return [
'*' => [
// The amount of time after which the cache should expire (if not 0). See [[ConfigHelper::durationInSeconds()]] for a list of supported value types.
'cacheDuration' => 'PT1S',
]
];
With the cache duration set to 'PT1S'which should be 1 second the cache never expires, if you change it to just a 1 the cache will expire. According to the ConfigHelper docs a string duration interval should be accepted but it doesn't appear to work.
Versions
craftcms/cms 4.4.15
putyourlightson/craft-blitz 4.4.6
PHP 8.1.19
MySQL 5.7.23
Redis 7.0.0
The text was updated successfully, but these errors were encountered:
We have had some complaints of our site caches not expiring, after digging into it a bit I found that us using a string duration interval is making the cache not have an end date.
Basic
blitz.php
config fileWith the cache duration set to
'PT1S'
which should be 1 second the cache never expires, if you change it to just a1
the cache will expire. According to the ConfigHelper docs a string duration interval should be accepted but it doesn't appear to work.Versions
craftcms/cms
4.4.15putyourlightson/craft-blitz
4.4.6The text was updated successfully, but these errors were encountered: