<p>It became apparent from the comments (to the question, see above) that caching was to blame.</p>

CC BY-SA 4.0
2021-08-08T15:15:34.227Z
2021-08-08T15:15:34.227Z
Ben Croker
<p>I'm upgrading a website from Craft2 to Craft3 on the previous website I implemented website search and work without any issues, but on the new site, I can do an initial search and get results without any problems if I decide to do a second search the results are not updating only show me the results from the previous search.</p>

CC BY-SA 4.0
2021-08-06T18:19:53.213Z
Can you explain what exactly you mean by "a second search"? It sounds like your search form might be incorrectly set up if you're not seeing results update on submission.
Ben Croker
CC BY-SA 4.0
2021-08-06T19:47:04.923Z
I have a search form on the website navigation for visitors to be able to search the site. Let say I search the site for the term apple, I get back results, but if I decide to change the search term to banana, I don't get the new results because the page only shows me the result for apple my first search.
Azazel
CC BY-SA 4.0
2021-08-07T06:16:27.310Z
If searching for "banana" the first time gives you different results to searching for "apple" then there is either be an issue with how your form submits, or perhaps the search results (or the entire search page) are being cached. Are you using any form of caching?
Ben Croker
CC BY-SA 4.0
2021-08-08T11:12:28.520Z
Thank you for your help. Caching was the problem.
Azazel
<craft3><search>
Craft3 CMS Website Search form is not updating results if I do a new search?
# Craft3 CMS Website Search form is not updating results if I do a new search?

(Asked by: username_0 on 2021-08-06)

I'm upgrading a website from Craft2 to Craft3 on the previous website I implemented website search and work without any issues, but on the new site, I can do an initial search and get results without any problems if I decide to do a second search the results are not updating only show me the results from the previous search.

**Tags:** craft3, search

> **Comments:**
> **username_1**: Can you explain what exactly you mean by "a second search"? It sounds like your search form might be incorrectly set up if you're not seeing results update on submission.  
> **username_0**: I have a search form on the website navigation for visitors to be able to search the site. Let say I search the site for the term apple, I get back results, but if I decide to change the search term to banana, I don't get the new results because the page only shows me the result for apple my first search.  
> **username_1**: If searching for "banana" the first time gives you different results to searching for "apple" then there is either be an issue with how your form submits, or perhaps the search results (or the entire search page) are being cached. Are you using any form of caching?  
> **username_0**: Thank you for your help. Caching was the problem.  

---

## 1 answers

### Answer by username_1 on 2021-08-08. Score: 1

It became apparent from the comments (to the question, see above) that caching was to blame.


---

