Dear support,
Mobile and Desktop home pages are mixed from nginx fastcgi cache…
in other words when access to mobile page first, home page on desktop
is mobile page, and when access from desktop first, home page on mobile
device in not mobile page.
How to resolve this issues.
Thank in advance
BR
Hello,
Please check if the plugin has an option for mobile cache -> https://community.easyengine.io/t/how-to-fastcgi-cache-desktop-with-mobile-versions-purging-with-get-requests/6132
Thank you!
Dear Anamaria,
Thank you for your reply.
I will try to implement this code into nginx-helper plugin, and inform you about it when done.
Thank you a lot.
Best Regards
Dear Anmaria,
I tried to implement code into nginx-helper
but I have a errors..
I think that version of current ngnix-helper is different
from your url link manual.
Does your team know how to do this?
error log:
2023/04/26 17:03:36 [error] 5689#5689: *26181 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined method FastCGI_Purger::_do_remote_get() in /var/www/clients/client1/web2/web/wp-content/plugins/nginx-helper/admin/class-fastcgi-purger.php:84
Stack trace:
#0 /var/www/clients/client1/web2/web/wp-content/plugins/nginx-helper/admin/class-nginx-helper-admin.php(716): FastCGI_Purger->purge_url()
#1 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(308): Nginx_Helper_Admin->purge_all()
#2 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#3 /var/www/clients/client1/web2/web/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /var/www/clients/client1/web2/web/wp-includes/class-wp-admin-bar.php(87): do_action()
#5 /var/www/clients/client1/web2/web/wp-includes/admin-bar.php(49): WP_Admin_Bar->initialize()
#6 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(308): _wp_admin_bar_init()
#7 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(332): WP_Hook->app” while reading response header from upstream, client: 213.198.238.41, server: nook.rs, request: “GET /hrvatica-u-nemackoj/?nginx_helper_action=purge&nginx_helper_urls=current-url&_wpnonce=2ce9653a10 HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php/web2.sock:”, host: “nook.rs”, referrer: “https://nook.rs/hrvatica-u-nemackoj/”
2023/04/26 17:06:01 [error] 5689#5689: *26181 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined method FastCGI_Purger::_do_remote_get() in /var/www/clients/client1/web2/web/wp-content/plugins/nginx-helper/admin/class-fastcgi-purger.php:84
Stack trace:
#0 /var/www/clients/client1/web2/web/wp-content/plugins/nginx-helper/admin/class-nginx-helper-admin.php(716): FastCGI_Purger->purge_url()
#1 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(308): Nginx_Helper_Admin->purge_all()
#2 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#3 /var/www/clients/client1/web2/web/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /var/www/clients/client1/web2/web/wp-includes/class-wp-admin-bar.php(87): do_action()
#5 /var/www/clients/client1/web2/web/wp-includes/admin-bar.php(49): WP_Admin_Bar->initialize()
#6 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(308): _wp_admin_bar_init()
#7 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(332): WP_Hook->app” while reading response header from upstream, client: 213.198.238.41, server: nook.rs, request: “GET /hrvatica-u-nemackoj/?nginx_helper_action=purge&nginx_helper_urls=current-url&_wpnonce=2ce9653a10 HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php/web2.sock:”, host: “nook.rs”, referrer: “https://nook.rs/hrvatica-u-nemackoj/”
2023/04/26 17:06:06 [error] 5689#5689: *26181 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined method FastCGI_Purger::_do_remote_get() in /var/www/clients/client1/web2/web/wp-content/plugins/nginx-helper/admin/class-fastcgi-purger.php:84
Stack trace:
#0 /var/www/clients/client1/web2/web/wp-content/plugins/nginx-helper/admin/class-nginx-helper-admin.php(716): FastCGI_Purger->purge_url()
#1 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(308): Nginx_Helper_Admin->purge_all()
#2 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#3 /var/www/clients/client1/web2/web/wp-includes/plugin.php(517): WP_Hook->do_action()
#4 /var/www/clients/client1/web2/web/wp-includes/class-wp-admin-bar.php(87): do_action()
#5 /var/www/clients/client1/web2/web/wp-includes/admin-bar.php(49): WP_Admin_Bar->initialize()
#6 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(308): _wp_admin_bar_init()
#7 /var/www/clients/client1/web2/web/wp-includes/class-wp-hook.php(332): WP_Hook->app” while reading response header from upstream, client: 213.198.238.41, server: nook.rs, request: “GET /hrvatica-u-nemackoj/?nginx_helper_action=purge&nginx_helper_urls=current-url&_wpnonce=2ce9653a10 HTTP/2.0”, upstream: “fastcgi://unix:/var/run/php/web2.sock:”, host: “nook.rs”, referrer: “https://nook.rs/hrvatica-u-nemackoj/”
Dear Anmaria,
Thank you!
I think that I success done with modification the php code
according new version of nginix-helper đ
Testing in process…