WordPress.org

Support

Support » Plugins and Hacks » WP Super Cache not working with Landing Sites – help!

WP Super Cache not working with Landing Sites – help!

  • eharmonyblog
    Member

    @eharmonyblog

    I would like help revising WP Super Cache to work with the Landing Sites plugin. Circle Six Design proposed just to have a check at the beginning of the cache plugin that would disable caching on a page if there was a valid search-engine referrer. Since Super Cache is one plugin on top of another, I’m afraid I don’t know where to start.

    I think many others find both plugins equally important and would appreciate WP Super Cache if they work together.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You should look at plugins/searchengine.php and how wp_supercache_searchengine() checks the referer. The string returned changes the wp-cache key for that cached file. Later on, the searchenginesupercache() function does some further checks to see if the supercache file should be generated.
    In effect you’ll have to disable the supercache for visitors from search engines, or convert the Landing Pages plugin to use Javascript to display the welcome message.
    I’d go down the Javascript route myself…

    donncha, sorry to say, but I didn’t understand what you meant.

    Can you elaborate, please? 😉

    Simply put, I want to show dynamic content when a user comes from a searchengine…

    Aw Guo
    Member

    @awflasher

    @jl Carneiro

    In this case, the JS solution is the best solution. A lot of referrer check with PHP is really so messy.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP Super Cache not working with Landing Sites – help!’ is closed to new replies.