Glenn Jacobs
Explore posts from serversHow to disable SWR if a route has a querystring?
We are building an online store and have category pages that list out products. We want the main initial category page to use SWR for speed and SEO.
These category pages have filters, that are applied to the querystring when selected. We don't wish to SWR a category page with filters applied in the querystring, instead we'd like them to use CSR.
I can't see how to use routeRules or middleware to achieve this.
I'm open to suggestions! 🙂
1 replies
SimplePagination still running a `->count()` query
When using the following code to implement simple pagination (for speed), I note the page still performs a
->count()
query on the model.
The point of using simple pagination is to avoid such a query slowing the page down for large amounts of data.
https://filamentphp.com/docs/3.x/tables/advanced#using-simple-pagination
The question is, am I doing this wrong... or have I come across a potential bug?4 replies