Skip to content

add config to show only last ajax requests in Web Debug Toolbar #22688

Closed
@SimonHeimberg

Description

@SimonHeimberg
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? yes/no
Symfony version 2.8.20, 2.1.10

When a page does many ajax requests, the list of done ajax requests can get very long. This uses memory and slows down the page. To avoid this I propose a configurable maximum number of ajax requests shown in the debug toolbar. Older ones would be removed from the list (and ... would be at the end). We can still find them in the profiler log.

example config

web_profiler:
    # maximal number of ajax requests to show in debug toolbar, null is unlimited
    max_ajax_requests_in_toolbar: null 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions