Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Roman 1 post 21 karma points
    Jan 27, 2015 @ 15:26
    Roman
    0

    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"

    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.
  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 27, 2015 @ 15:56
    Jan Skovgaard
    1

    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

  • keilo 568 posts 1023 karma points
    Jan 27, 2015 @ 16:24
    keilo
    0

    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/

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Jan 27, 2015 @ 21:32
    Jan Skovgaard
    1

    Hi Keilo

    Ehm...how does that link provide search functionality to the EZSearch package? I'm not sure I get it? :)

    /Jan

  • keilo 568 posts 1023 karma points
    Jan 30, 2015 @ 08:22
    keilo
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft