• When loading the settings page from the wp-admin, the page will take a long time to load and sometimes never loads. This is due to the logs loading synchronously on every page load.

    Can you update the plugin to lazy load the logs until someone clicks on the logs tab?

    In inc/class-wprus-settings.php, the get_logs_metabox() method (lines 402-421) calls:

    • Wprus_Logger::get_logs_count() — counts all log entries
    • Wprus_Logger::get_logs() — loads and renders all logs up to the min_num limit

    This runs on every settings page load, even if the logs tab isn’t open. With thousands of entries, this:

    • Queries thousands of rows
    • Loops through all rows and renders HTML for each
    • Blocks page rendering

    Could we get a fix that takes into consideration busy sites that need massive log files for debugging over larger periods of time? Thanks

You must be logged in to reply to this topic.