Skip to content

Dokan makes any cache plugin/system useless... #1199

@erikdemarco

Description

@erikdemarco

Im using cloudflare to cache my wordpress.
Before using dokan, my cache ratio is 99% (for 1000 pageviews 999 of the time visitor see cached page, saving my server resources).
After installing dokan. it become 20%.

Its because you set this 'dokan_product_viewed' cookie for each product pageview.
Cloudflare or any cache system will not cache if there is setcookie in the response header.

And guess what? There is no way to remove this functionality. I even remove it via this 'dokan_get_class_container' hook. Its not successfull because '\WeDevs\Dokan\PageViews()' already called before 'dokan_get_class_container' fired.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions