-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Solved ?] Exclude users/admins (based on their username) from seeing cached pages #7
Comments
I think your solution may work, but does require maintaining a list of administrators. I'd rater see we generate a list of administrators and export those to a file instead of manually maintaining a file. I think we can work that in later. However, I did see some hardcoded paths regarding your development setup and the plugin header sees to be missing. Would you be willing to fix those issues and create an actual Pull Request? That way we can start integrating your solution so others may benefit from it :) Documentation on how to create a Pull Request can be found on the Github docs. In short: fork this repository, commit your changes to your fork and then create a pull request from the Github interface. |
Hello!
Indeed but I need to exclude admins and some users. If you only want to exclude administrators, please use wp-cli. Simple way get them:
Many thanks for you anwser: I will create a Pull Request when I am sure everthing runs smoothly. If it succeed, then plugin No Cache for Admins will no longer be needed (assuming all admins are excluded). Have a great night. :) |
Work for me 👍 Thanks for the solution my friends |
You (@sanderdekroon): I don't have the time right now to implement such a feature. If you want, you are free to submit a PR. Me (@trendymail): I don't have the time to tell you how I managed to put this feature in production. If you want, just ask. Cheers! |
any soltution for this? |
Unfortunately, no. |
Hello!
Found a "solution" (your milage may vary) to exclude users/admins (based on their username) from seeing cached pages.
Long story short: when a user/admin is logged in, WordPress send/receive a cookie containing its username.
=> wordpress_logged_in_[hash]
So, it was quite simple to exclude theses users/admins from seeing cached pages.
I don't know (yet) how to send a Pull Request so the "raw" code is attached below (advanced-cache.php).
Any advice/hint would be greatly appreciated; :)
And, again, many thanks for this plugin!
advanced-cache.php.txt
The text was updated successfully, but these errors were encountered: