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

Cache getting incorrectly accessed/read #15

Open
JustinBack opened this issue Feb 12, 2022 · 4 comments
Open

Cache getting incorrectly accessed/read #15

JustinBack opened this issue Feb 12, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@JustinBack
Copy link
Contributor

I am accessing flagsmith in a docker container via a PHP CMS and everytime after restarting I have to manually clear the cache folder (removing the cache folder via the entrypoint doesnt work aswell) due to an error that the cachedCall is null.

https://sentry.internal.jrbit.de/share/issue/4bf1cd4ca04b4cbcaca8541a37709f9e/

The cache folder is empty and after deleting it it works.

https://github.com/JRB-IT/crispcms/blob/68e313aedf9c30aa996ae10fead621acab24fe5b/cms/jrbit/class/crisp/api/Flagsmith.php#L53

Any clue on what the issue is an how to hotfix it? Running on Tag 2.1.1

@JustinBack
Copy link
Contributor Author

I just noticed deleting the subfolders of the symfony-cache folder is not enough. The symfony-cache folder itself has to be completely deleted.

@dabeeeenster dabeeeenster added the bug Something isn't working label Feb 14, 2022
@fzia
Copy link
Collaborator

fzia commented Feb 14, 2022

Thanks for raising the issue @JustinBack . From the first look, it looks like this could be a docker copy versus docker volume problem, because it refreshes on restart. Can you confirm if you are using COPY in your docker file? If not, can we have a look at your dockerfile? and docker-compose (if any), so we can build this at our end?

@JustinBack
Copy link
Contributor Author

It does use copy however not the /tmp/ folder.

https://github.com/JRB-IT/crispcms/blob/master/Dockerfile

@fzia
Copy link
Collaborator

fzia commented Feb 14, 2022

Thank you for the response. Taking a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants