mirror of
https://github.com/cloudpanel-io/cloudpanel-ce.git
synced 2026-04-05 20:31:58 +02:00
Varnish never hits cache (Wordpress + Wordfence) #193
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rkcreation on 8/29/2024
CloudPanel version(s) affected
2.4.2
Description
Varnish never hits cache, because controller.php is never included.
I have to include file manually in wp-config.php to make Varnish cache work.
After some digging, the auto_prepend_file directive added in vhost seems to be ignored, because Wordfence create a .user.ini file with auto_prepend_file directive.
Any idea to have compatibility?
How to reproduce
Use Wordpress site with Wordfence enabled, and enable Varnish in CloudPanel
Possible Solution
Use another directive?
Add this to nginx config :
Additional Context
No response