Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh Expired removes entry from database but not file #624

Closed
Wiejeben opened this issue Feb 23, 2024 · 4 comments
Closed

Refresh Expired removes entry from database but not file #624

Wiejeben opened this issue Feb 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@Wiejeben
Copy link

Wiejeben commented Feb 23, 2024

Bug Report

Since the change in 4.11.0 we are experiencing issues with specifically our homepage from not regenerating after the page is expired.

Crontab:

*/5     *       *       *       *       cd /var/www && php craft blitz/cache/refresh-expired --queue

Our homepage setup:

{% do craft.blitz.options({
    trackElements: false,
    trackElementQueries: false,
    expiryDate: date('15 minutes'),
}) %}

When first loading the homepage it will appear as a row in the blitz_caches table with the uri as an empty value. After the expiry date was reached it will be removed from the database but when I got to my storage I can still see an index.html exists for the homepage. Since this index.html remains and I use an NGINX rewrite the page is never recreated.

Our refresh mode is "Clear the cache, regenerate manually or organically" with Blitz File Storage without gzip compression for our cache storage.

Plugin Version

4.11.2

Craft CMS Version

4.7.4

PHP Version

8.2.8

@Wiejeben Wiejeben added the bug Something isn't working label Feb 23, 2024
@bencroker
Copy link
Collaborator

Thanks for reporting this, should have a fix out later today.

@bencroker
Copy link
Collaborator

Fixed in aede7ea for the next release.

You can test this by running composer require "putyourlightson/craft-blitz:dev-develop as 4.11.3".

@bencroker
Copy link
Collaborator

Fixed in 244fae9 as well!

@bencroker
Copy link
Collaborator

Released in 4.12.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants