Enable mobile cache button is not working in some cases #6643
Labels
module: user interface
needs: grooming
priority: medium
Issues which are important, but no one will go out of business.
severity: major
Feature is not working as expected and no work around available
type: bug
Indicates an unexpected problem or unintended behavior
Milestone
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
In this PR:
https://github.com/wp-media/wp-rocket/pull/6600/files#diff-808154db979cdc470bb9d67f22f47c3b27529476df03f52d1f3b9b39ab7dddd0
We removed part of the JS script from the minified version of wpr-admin script, exactly here:
It's exactly this part:
wp-rocket/src/js/global/ajax.js
Lines 199 to 227 in 0aed49b
but it still there in the not minified version of the script here:
wp-rocket/assets/js/wpr-admin.js
Lines 185 to 207 in afe019d
This makes the button of enabling the mobile cache is not working by default and works only if we changed the value of the constant
SCRIPT_DEBUG
to betrue
.To Reproduce
Steps to reproduce the behavior:
SCRIPT_DEBUG
is not added towp-config.php
file or set asfalse
SCRIPT_DEBUG
constant's value to be true and try again.Screenshots
mobile-cache-issue-2024-05-17_14.47.00.mp4
Additional context
Add any other context about the problem here.
Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming
The text was updated successfully, but these errors were encountered: