• Resolved yotekoon

    (@yotekoon)


    Hello, I have a pre-frontpage that is to say a page that appeared before entering my site with a validation button to enter but the problem :

    The control is done via the browser cookie, and it will be invalid for 10 days. This means that if a visitor comes to your site for the first time, he’ll see the home page. On his next visit, he’ll see the real home page. And after 10 days, he’ll see the pre-home page again.

    but as I use nginx and redis and their respective plugins (nginx helper et redis object cache), I’ve noticed that now when people want to enter the site the pre-frontpage won’t let them in and they only see the pre-frontpage:

    https://prnt.sc/O7YjttVXK1vS

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    Sorry, we can’t help with custom code. Are you using a 3rd-party plugin to for you pre-frontpage?

    Thread Starter yotekoon

    (@yotekoon)

    hello i did it mysel, it’s an php page i can share you the code if you want to check !

    • This reply was modified 10 months ago by yotekoon.
    Plugin Author Till Krüss

    (@tillkruess)

    Please post a link to the code.

    Thread Starter yotekoon

    (@yotekoon)

    Hello the code is here !

    https://pastebin.com/3Uy2wQBv

    In same pastebin page you have the 2 code first for the pre-frontpage.php and near the bottom the function.php !

    Plugin Author Till Krüss

    (@tillkruess)

    What does \App\Madara::getOption() do?

    Thread Starter yotekoon

    (@yotekoon)

    it’s for the theme option !

    i forgot this one too https://pastebin.com/Husf9Rn5

    • This reply was modified 10 months ago by yotekoon.
    Thread Starter yotekoon

    (@yotekoon)

    i contacted the dev of my theme and he told me :

    “Regarding the pre-homepage cache, as I mentioned it needs to integrate with the cache plugin (redis object cache ). You will need to exclude the home page from cache and we have to study the cache plugin if they support this. If the plugin author says they can update, then let’s see”

    Plugin Author Till Krüss

    (@tillkruess)

    Hi there!

    Redis Object Cache is not a page cache, you cannot exclude pages. The theme must update and invalidate the cached object properly.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘I have a Pre-frontpage problem with redis cache problem’ is closed to new replies.