Hi all! Im trying to set up gb with php, using a s...
# ask-questions
m
Hi all! Im trying to set up gb with php, using a simple bool feature flag. Everything is working in dev but in production I don't see any changes on the page, in the growthbook extension I can see that the flag is true. Don't know how many php-users are here, and I'm sitting in a project which is a bit dated in places, but I'm using pdoCache wrapped in Psr16Cache to set the cache, and using the initialize method to load features. Anyone have any thoughts on what I might need to do to get it to work in prod? When I use the Growthbook extension I also cant see my backend SDK there, but that happens in dev as well (even though the test is working fine ther)
s
Can you share some of the PHP code? Nothing rings a bell about why this might be happening (or not happening) right off the bat
m
Of course, I've tried a bunch of different of different things but here are two, both of them working in dev. I also have a screenshot of how we use it.
@strong-mouse-55694 Have you had time to check if you see anything obvious in my implementation?
s
I don't see anything obvious. Are you able to add some error logging, after initialization, to see what the values are? I'm wondering if there's something happening in prod with access to cache or the api...
@freezing-postman-69602 Are you familiar with the PHP SDK and have any insights here?
m
In the middle of trying to add error logs, the whole team is fairly new to the project so takes a bit of time to figure out how everything works 😅 will get back to you when we’ve got some logs!
s
Great. Keep us posted
m
Hi, turns out it was a caching problem on our end. We decided to do the test in frontend instead, and will figure out a solution for the backend if we need it in the future 🙂
🙌 1