I work with a very popular Umbraco site, running 7.1.4 and ezSearch (which I have installed). This is typically maintained by an agency, I just went in and installed/customized ezSearch.
Now, here's the issue:
ezSearch is running at "/search/?q="
If I run: "/search/?q=test"
And this has no results, and then I run:
If I run: "/search/?q=blue"
And this has results, the page does not update. It's completely still. It still says, "no results for -test-"
So I think, this is odd, I force refresh the page, seeing that the URL contains q=blue, and when I do that, it suddenly loads the right page. So I do the same thing again, I change the URL to "test" (or just enter test), execute the search and the page stands still. I force refresh, and it loads.
Caching issue? This is very strange...
Keep in mind, I don't submit via FORM GET request.
I have Javascript doing that with:
document.location.href='/search/?q=' + term
Any ideas?
EDIT: I noticed, when I wait a minute between these requests (that's the only change), then everything works.
If you go to the "Developer" settings and expand the "Macroes" folder and find the EZSearch macro does it then have a caching period set? If so you should probably just set it to 0.
He did mention he is not submitting the form in conventional post but changing the url string and a potential caching.
To me it sounds like the post is not occuring, showing from cache, and since he is using script to manipulate perhaps using jquery form for proper form submit is the way to go
Weird Caching Issue?
I work with a very popular Umbraco site, running 7.1.4 and ezSearch (which I have installed). This is typically maintained by an agency, I just went in and installed/customized ezSearch.
Now, here's the issue:
ezSearch is running at "/search/?q="
If I run: "/search/?q=test"
And this has no results, and then I run:
If I run: "/search/?q=blue"
So I think, this is odd, I force refresh the page, seeing that the URL contains q=blue, and when I do that, it suddenly loads the right page. So I do the same thing again, I change the URL to "test" (or just enter test), execute the search and the page stands still. I force refresh, and it loads.
Hi Roman and welcome to our :)
If you go to the "Developer" settings and expand the "Macroes" folder and find the EZSearch macro does it then have a caching period set? If so you should probably just set it to 0.
/Jan
Sounds like the form submission is likely the cause.
Have you considered using jquery form? Its pretty straightforward and works;
http://malsup.com/jquery/form/
Hi Keilo
Ehm...how does that link provide search functionality to the EZSearch package? I'm not sure I get it? :)
/Jan
Hi Jan
He did mention he is not submitting the form in conventional post but changing the url string and a potential caching.
To me it sounds like the post is not occuring, showing from cache, and since he is using script to manipulate perhaps using jquery form for proper form submit is the way to go
At least thats my understanding.
cheers
is working on a reply...