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

Unyson not playing nice with Varnish-caching #3269

Closed
warudin opened this issue Mar 19, 2018 · 5 comments
Closed

Unyson not playing nice with Varnish-caching #3269

warudin opened this issue Mar 19, 2018 · 5 comments

Comments

@warudin
Copy link

warudin commented Mar 19, 2018

Unyson uses session_start() on some places, which apparently causes Varnish-caching to fail for us.

Did someone else get Varnish working with a site running with Unyson? Is there something that can be done about it?

@ViorelEremia
Copy link
Contributor

can you try this branch? https://github.com/ThemeFuse/Unyson/tree/sessions

@warudin
Copy link
Author

warudin commented Mar 19, 2018

I've added the changed file and as far as I can see this works.

@ViorelEremia
Copy link
Contributor

@warudin I reverted commits so unyson will continues to use sessions. Now forms messages not work with this branch; I have to think of another mechanism. Try to enable sessions or keep the current file version after next update of unyson.

@badgerland
Copy link

The link doesn't work anymore, can anyone give me the fix for this? I am getting the following from my hosting company::
"After reviewing this issue for you, it appears there is a conflict with your Unyson plugin that is preventing the server from caching properly.
I tested this by disabling the Unyson plugin temporarily and running the
command: wp varnish debug from within your domain's directory. With the
Unyson plugin disabled, the server caches the site properly without any issues.
In this case, I would recommend reaching out to the Unyson plugin developers to determine if there is a workaround to allow that plugin to work with the nginx server cache, or alternatively, you may want to look into a different plugin which would be more compatible."

@warudin
Copy link
Author

warudin commented Jan 16, 2019

@badgerland: as can be seen in the last message of @ViorelEremia, the changes have been reverted because of problems. ViorelEremia would think about another solution, but as the ticket has been closed, I don't think that there will be any follow-ups.

That being said, the ticket shouldn't remain closed since the changes have been reverted and thus the problem hasn't been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants