putyourlightson / craft-blitz

Intelligent static page caching for creating lightning-fast sites with Craft CMS.
https://putyourlightson.com/plugins/blitz
Other
149 stars 36 forks source link

FR: Support for URIs larger than 255 chars #539

Closed joepagan closed 1 year ago

joepagan commented 1 year ago

Was debugging why some search results uris on a site we manage were bypassing cache, and unfortunately got the log:

Page not cached because it exceeds the max URI length of 255 characters. [https:/...

It looks like this is by design on an older github issue because craft3 supposed mysql5.5+

However craft4 supports mysql5.7.8+

Can we please get support for this for blitz v4 and onwards?

bencroker commented 1 year ago

Yes, I’ll look into making this happen. What version of Blitz is the site currently running?

joepagan commented 1 year ago

Amazing thanks Ben! Currently running 4.2.3

bencroker commented 1 year ago

Added this as a config setting in https://github.com/putyourlightson/craft-blitz/commit/4fb3ec21c96cc6e31698ef097d82400d8f96404e for the upcoming 4.5.0 release. Be sure to read the caveats before changing.

bencroker commented 1 year ago

Released in version 4.5.0.