Support » Plugin: WP Fastest Cache » Exclude pages only for logged in users

  • Hi Emre and thanks for the very good plugin.
    I’m trying to achieve a function that I cannot see in the standard options of your plugin.

    I need the Don’t show the cached version for logged-in users to be deactivated while it would be great to have some pages not cached for logged in users only.
    If I add Exclude Pages rules those will affect all users: is there a way to get the cached version for unknown users?

    The only other solutions seems to be ajax in those pages, is that right?
    Thank you
    Andrea

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Emre Vona

    (@emrevona)

    thank you so much.

    If you know php, you can write it.

    <?php
    if(is user loggedin){
    echo “<!–- [wpfcNOT] -–>”;>
    }
    ?>

    Thread Starter andreabaino

    (@andreabaino)

    Hi Emre and thank you for your reply!
    Sure, I can write it. I need to put this on each page/post (in the template?) that I do not want to be cached without adding any Exclude page rule?

    Thank you!
    Andrea

    Plugin Author Emre Vona

    (@emrevona)

    you need to add the code into header.php of theme file.

    you are welcome πŸ™‚ if you vote, you make me so happy.

    https://wordpress.org/support/plugin/wp-fastest-cache/reviews/?rate=5#new-post

    Thread Starter andreabaino

    (@andreabaino)

    Sure! 5 stars for the great plugin!

    But I’m not sure about the solution. Putting this in the header.php file of my theme would disable cache for all pages if user logged in (I think this will work as the standard option). I need to disable the cache just for some page, just for logged in user.

    Plugin Author Emre Vona

    (@emrevona)

    ow my god. I made a mistake. This is not possible.

    Thread Starter andreabaino

    (@andreabaino)

    Oh, ok, no problem! Thank you.
    I think I’m going to use Ajax to achieve some extra functions for logged in users.
    Andrea

    Plugin Author Emre Vona

    (@emrevona)

    you are welcome. sorry again.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Exclude pages only for logged in users’ is closed to new replies.