Answer the question
In order to leave comments, you need to log in
How to prevent a plugin from writing cookies in Wordpress without touching the plugin itself (ngnix)?
Hi friends!
After we switched to ngnix and enabled all kinds of caching, a big problem appeared - the woocommerce online store plugin constantly writes cookies when it is initiated, which prevents ngnix from writing the cache. It would seem - fix the plugin and that's it, but the authorities insist that I do not touch the plugin itself (they want to install updates without problems with corrections). This plugin writes cookies using the regular setcookie function.
The question, in fact, is the following - is it possible to somehow write a second plugin to catch an attempt to write to cookies?
The problem is further complicated by the fact that the plugin is written using a bunch of classes that call each other without being tied to hooks, which makes me feel that the second plugin will not be able to get out in any way ...
Tell me, please, what is the best way to be - after all, to edit the plugin or is there any trick to solve such problems?
Answer the question
In order to leave comments, you need to log in
I think it will help you. Catch the right cookie and that's it. :)
stackoverflow.com/questions/10306254/is-it-possible...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question