php - WordPress plugin caching issues -


i'm trying set , read cookies within wordpress across site way of custom plugin wrote.

add_action( 'wp_head', 'my_cookie_code' );

the code wrote works, however, once it's deployed our live server not.

i think because of our wordpress caching system. when turn off, cookie code works once it's on, not.

without turning off wordpress caching system, how can code work it?

i want each page cached caching system still want little bit of code executed.

thanks

it appears issue wpengine caching system.

when switched code being php based javascript, able solve problem having.

more information on issue can found here: cookies , php sessions on wpengine


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -