Answers.Body: <p>It became apparent from the comments (to the question, see above) that caching was to blame.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-08T15:15:34.227Z
Answers.LastActivityDate: 2021-08-08T15:15:34.227Z
Answers.UserDisplayName: Ben Croker
Body: <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>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-06T18:19:53.213Z
Comments.Text: 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.
Comments.UserDisplayName: Ben Croker
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-06T19:47:04.923Z
Comments.Text: 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.
Comments.UserDisplayName: Azazel
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-07T06:16:27.310Z
Comments.Text: 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?
Comments.UserDisplayName: Ben Croker
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-08T11:12:28.520Z
Comments.Text: Thank you for your help. Caching was the problem.
Comments.UserDisplayName: Azazel
Tags: <craft3><search>
Title: Craft3 CMS Website Search form is not updating results if I do a new search?
ThreadText: # 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.
  
  
  ---
  
  