Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 64413

Varnish is steup but cannot cache and bunch or errors with strpos()

$
0
0

Replies: 0

I am using Dreampress from Dreamhost where Varnish is setup and also using Cloudflare on my website https://www.androidsage.com/
First off, I see a bunch of warnings when I test the Varnish cache using this plugin.

Here are the warnings

Warning: strpos() expects parameter 1 to be string, array given in /home/wp_kq43ez/androidsage.com/wp-content/plugins/varnish-http-purge/varnish-status.php on line 283

Warning: strpos() expects parameter 1 to be string, array given in /home/wp_kq43ez/androidsage.com/wp-content/plugins/varnish-http-purge/varnish-status.php on line 289

Warning: strpos() expects parameter 1 to be string, array given in /home/wp_kq43ez/androidsage.com/wp-content/plugins/varnish-http-purge/varnish-status.php on line 295

Warning: strpos() expects parameter 1 to be string, array given in /home/wp_kq43ez/androidsage.com/wp-content/plugins/varnish-http-purge/varnish-status.php on line 301

Warning: strpos() expects parameter 1 to be string, array given in /home/wp_kq43ez/androidsage.com/wp-content/plugins/varnish-http-purge/varnish-status.php on line 307

Later in the Varnish testing tool, I see

1.Varnish is running but cannot cache.
2.Because CloudFlare is running, you may experience some cache oddities.
3.A plugin or theme is setting a PHPSESSID cookie on every pageload. This makes Varnish not deliver cached pages.(Which Plugin?)
4. Easy Digital Downloads is being used with cookie sessions. This may cause your cache to misbehave. If you have issues, please set define( “EDD_USE_PHP_SESSIONS”, true ); in your wp-config.php file. (Not using Easy Digital Downloads)
5.Easy Digital Downloads is putting down a shopping cart cookie on every page load. Make sure Varnish is set up to ignore that when it’s empty. (Never used the plugin)
5.Wordfence is putting down cookies on every page load. Please disable that in your options (available from version 4.0.4 and up). (Wordfence has been uninstalled since long)
6.Something is setting the header Cache-Control to “no-cache” which means visitors will never get cached pages.
7.Something is setting the header Pragma to “no-cache” which means visitors will never get cached pages.

I am not using any of the plugins listed above. Why is the plugin showing errors?

Also, what should i do with the Varnish IP?

Thanks.


Viewing all articles
Browse latest Browse all 64413