Skip to content
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

Pods User cache bug #4005

Closed
pcfreak30 opened this issue Feb 21, 2017 · 5 comments
Closed

Pods User cache bug #4005

pcfreak30 opened this issue Feb 21, 2017 · 5 comments
Labels
Status: Need User Feedback Waiting on feedback from user who reported issue Type: Bug
Milestone

Comments

@pcfreak30
Copy link
Contributor

Im trying to check a user field then save it, but because im using redis its glitching. PodsData.php 1777 uses cache, but due to line 1786, it stores the old data and does an array_merge on 1952, and then caches it again. So the value never gets fully refreshed. Right now I see that I may have to use get_user meta or manually clear pods cache before the initial pods call.

@jamesgol
Copy link
Contributor

Can you give the steps to reproduce this? Is this all happening in the same request, different requests, or it doesn't make a difference?

@pcfreak30
Copy link
Contributor Author

In the same request and it because it stores the old data back it persists.

This is the code I was working with, with my workaround, https://gist.github.com/pcfreak30/04d5286dbaee9dc39ea63ec0743d32a8.

its a user pod with meta fields on redis https://wordpress.org/plugins/redis-cache/.

@quasel
Copy link
Member

quasel commented Aug 31, 2018

is this still an issue? as much has happened around caching 🥇

@pcfreak30
Copy link
Contributor Author

@quasel based on the issue referencing this, #4041 it is since @sc0ttkclark listed for a bounty?

@quasel
Copy link
Member

quasel commented Sep 1, 2018

yep but it's closed and from reading over there it has been fixed by Scott!

@quasel quasel closed this as completed Sep 1, 2018
@sc0ttkclark sc0ttkclark added this to the Pods 2.7.13 milestone Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Need User Feedback Waiting on feedback from user who reported issue Type: Bug
Projects
None yet
Development

No branches or pull requests

4 participants