All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Using cache and refresh parameters with Low Search Results tag

Stephen 27 Jun 2013 21:53 question, complete

Hi Low,

Although I didn't notice this in the documentation, I tried adding the channel entries cache and refresh parameters to the Low Search Results tag and noticed a decent performance improvement when showing several hundred results per page.


{exp:low_search:results query="{segment_4}" limit="500" paginate="both" orderby="title" sort="asc" cache="yes" refresh="3600"}


I just wondered if you have any thoughts on whether this should be used or avoided?

Thanks,

Stephen

Replies

  1. Low 30 Jun 2013 13:50

    The tag output is cached based on unique opening tags, if I'm not mistaken. I don't think it would hurt to add the cache parameters to the tag, but if you're getting unexpected results, that would be the first thing to go.

  2. Stephen 30 Jun 2013 23:01

    Okay, thanks Low. I'll give it a try and keep an eye on it.

  3. Stephen 3 Jul 2013 23:24

    Just posting back for info - I just noticed the first issue with these parameters. I found that setting the limit via a dropdown menu in the search form no longer worked. Whatever I changed it to, the search results only displayed whatever number of results that were first displayed when the tags were cached.

  4. Low 4 Jul 2013 06:21

    Good to know, thanks.