trivisa
Forum Replies Created
-
Hi@isaumya ,
Admin_bar href is solved.
Redirection is not solved.
—–
On the admin page, most pages don’t redirect, but some do.
admin.php?page=opcache-page&swcfpc=1 => admin.php?page=opcache-page&swcfpc=1x-qm-redirects-redirect-trace wp_safe_redirect(), flush_opcache(), do_action('admin_init')function flush_opcache() { if (isset($_GET['flush_opcache']) && $_GET['flush_opcache'] === 'true' && wp_verify_nonce($_GET['_wpnonce'], 'flush_opcache')) { opcache_reset(); wp_safe_redirect(admin_url('admin.php?page=opcache-page')); exit; } } add_action('admin_init', 'flush_opcache');—–
Not on the admin page,The home page does not redirect.When logged in:
*.com/*/ => *.com/*?swcfpc=1
When not logged in:
No redirection.- This reply was modified 3 years, 1 month ago by trivisa.
Hi@isaumya ,
After I delete
, $this->objects['cache_controller']->get_cache_buster() => 1,The?swcfpc=1in the admin_bar href is no longer displayed.\wp-cloudflare-page-cache\libs\backend.class.php:278 'href' => current_user_can('manage_options') ? add_query_arg( array( 'page' => 'wp-cloudflare-super-page-cache-index', $this->objects['cache_controller']->get_cache_buster() => 1), admin_url('options-general.php')) : '#',I mean after the Remove cache buster query string is enabled
I’ve used this feature and everything seems to be working fine. There are just two problems:
The Settings page of the plugin will have swcfpc=1:
https://*.com/wp-admin/options-general.php?page=wp-cloudflare-super-page-cache-index&swcfpc=1
In addition, the page performs a 301 redirect
When logged in:
*.com/*/ => *.com/*?swcfpc=1
When not logged in:
*.com/*/ => *.com/*
In addition, *.com?swcfpc=1 is Bypass Cache
Are these expected behaviors?