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

Issue with Simple Map plugin and cache not clearing #355

Closed
samstevens opened this issue Nov 15, 2021 · 3 comments
Closed

Issue with Simple Map plugin and cache not clearing #355

samstevens opened this issue Nov 15, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@samstevens
Copy link

Describe the bug

When Blitz automatically clears the cache, the queue task can fail for certain queries when using the Simple Map plugin. This will result in the site being partially cleared.

image

To reproduce

When using the Simple Map plugin and the ORDER BY distance feature, Blitz will store the original SQL query it saw, however, the plugin is doing some extra work under the hood:

https://github.com/ethercreative/simplemap/blob/v3/src/services/MapService.php#L392

This results in an error in the SQL query blitz stores.

Expected behaviour / potential fix

These queries could be ignored.

Versions

  • Plugin version: Latest
  • Craft version: Latest

Thanks,
Sam

@samstevens samstevens added the bug Something isn't working label Nov 15, 2021
@bencroker
Copy link
Collaborator

Thanks for reporting this. I made the refresh cache job ignore exceptions when executing element queries in 867bcb8, which should prevent the queue job from failing in the next release.

@samstevens
Copy link
Author

Thanks Ben – that makes sense.

Cheers,
Sam

@bencroker
Copy link
Collaborator

Released in version 3.11.1.

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