litespeedtech / litespeedtech/lscache_wp

webp replacment problem

Open
#628 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
123
PR merge metrics
No merged PRs in 30d

Description

Hi. thank you for your great work at litespeed plugin.
As of admin i need to be able to see output of some settings with admin access.
but some options only applied for cached pages.
and i cannot see them until i logged out.
but debugging without admin is very difficult.
like webp replacement and lazy load output.
![image](https://github.com/litespeedtech/lscache_wp/assets/54323929/6d069311-b089-430a-9261-22e222513a9b)
i know that you cannot change the code for some good reason and logics that i know.
so i came with a new solution
i think you can add debugging mode option that only work with admin users and special params in url
we can control which options apply in debugging mode by passing params like that:
`https://site.com/?lsp_debug=true&lsp_lazy_load=true&lsap_minify_html=false&lsp_web_replacement=true`
so we can see options output and debug easily 😊

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the plugin's handling of cached-page options and the URL entry point described in the issue. Review how admin access is checked and how WebP replacement and lazy-load output are generated. Done means an agreed, secure debug mode lets authorized admins inspect selected options without logging out, with coverage for the proposed parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.