Skip to content

API and Main web endpoints recreate templates and dev mode locks and recreate templates on each read #20211

Closed
@zeripath

Description

@zeripath

Description

The API and the main web page endpoints each create their own copy of the templates which should just be being created once and once only.

There's another issue whereby the dev version is simply locking all of the templates on read and recreating them thus potential concurrency issues with templates are likely being hidden on dev environments.

See also #20210

Gitea Version

1.16+

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

N/A

Database

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions