Hello @slisje
Thank you for reaching out.
The part of the code that uses eval() code is required to add dynamic content, which won’t be cached by the Page Cache. It is only available to the ContentGrabber itself, which uses it for fragment caching.
The same function caller requires W3TC_DYNAMIC_SECURITY to be defined, and since it is only available to the Page Cache, this is not malware.
So, to be able to run the PHP code in the fragment to get up-to-date content, you have to use eval.
Thank!
Thread Starter
slisje
(@slisje)
@vmarko ok, but for it to run does the content security policy need to include unsafe-eval?
-
This reply was modified 4 years, 10 months ago by
slisje.