• Resolved massimod

    (@massimod)


    Hello.

    I see that searches are not cached. Good. But i see several pages of mine that include arguments, that are cached.

    For example this is cached:

    /destinations/?category=1533

    and i think it should not. Or optional.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author LiteSpeed Technologies

    (@litespeedtech)

    Hi @massimod

    We will look into adding a new option for query strings.

    A temporary fix, you can use rewrite rules conditional on the query string to set no-cache and it will ignore the cache entry.

    Another idea is if you are handy at PHP, you can also make a simple PHP script to do this yourself via our third party api.

    Let us know what you think!

    Cheers,
    Kevin

    Thread Starter massimod

    (@massimod)

    Hi, i will use your suggestion for rewrite and see how it goes. Or i could also exclude those pages from the plugin ? Would wildcard work ?

    /destinations/?category=* or something ?

    Plugin Support Hai Zheng?

    (@hailite)

    you can try adding /destinations/ to do not cache rules -> URI List

    Plugin Author LiteSpeed Technologies

    (@litespeedtech)

    To add on to what @hailite said, if /destinations/ should not be cached, you can add it to the URI list. The plugin code may not recognize the query string portion of the request, so if you are ok with it, /destinations/ will not be cached for anyone.

    Rewrite Rules will probably work better if you prefer requests without arguments to be cached. If you do go this route, remember to add it outside the plugin comment block, else it will be overwritten.

    Thread Starter massimod

    (@massimod)

    Thanks guys. Did that. I’m ok now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘What is cached and what not’ is closed to new replies.