WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache not working with Landing Sites - help! (4 posts)

  1. eharmonyblog
    Member
    Posted 6 years ago #

    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.

  2. Donncha O Caoimh
    Member
    Posted 6 years ago #

    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...

  3. José Luís
    Member
    Posted 5 years ago #

    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...

  4. Aw Guo
    Member
    Posted 5 years ago #

    @JL Carneiro

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

Topic Closed

This topic has been closed to new replies.

About this Topic