• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Search URL without cache

Slind

Active member
#1
Hey,
I would like to share a specific search query, but when clicked it should execute a new search and not the cached results, is that possible?

The url it returns is
Code:
https://mineyourmind.net/forum/search/1484227/?q=%2A%2A%2A%2A&t=post&o=date_asc&g=1&c[title_only]=1&c[prefix]=22
When I replace the number with "search" it executes an empty search. When I write a query like
Code:
https://mineyourmind.net/forum/search/search?keywords=test
it works though, I assume it is due to the keys being different.

Btw is the search result stored forever under its id and accessing the url a year later returns the same?

Disclaimer: enhanced search is being used
 

Mike

XenForo developer
Staff member
#2
There's no URL-based way to not use the cache, though it is explicitly disabled for moderators and admins and in debug mode (for everyone). The cache is not shared between users (but it would be shared by guests).

The results are only cached for 1 hour.
 

Slind

Active member
#3
hmm, thanks.
It looks like the prefix filter can only be used via. the post search while the keyword filter works via. the get search.

I would like to have a clickable link that would list all threads with a specific prefix (across the entire board). Is there any solution approach that comes to your mind?
 

Mike

XenForo developer
Staff member
#4
This is something that you may need to do for your specific needs as we generally require a keyword or a user for a search to be done.