[6.x]: Registers `Event::listen` on every request and grows a static `Field::$entryManagers` (leaks under Octane)

Đang mở
#665 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
40/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
backend

Hướng nghiên cứu

Start in the plugin's init()/service registration where Event::listen runs per request, and find the static Field::$entryManagers declaration and every place it is appended to. Read how Craft/Octane resets state between requests, then make listener registration idempotent and clear the static array at request end. The second bullet points at the code that copies nested entries and strips <craft-entry> when there is no create-entry button. Done means repeated requests no longer accumulate listeners or managers and the field behavior matches the description.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug repo:ckeditor
Description
  • Registers Event::listen on every request and grows a static Field::$entryManagers (leaks under Octane).
  • Copies referenced nested entries / strips <craft-entry> when the field has no "create entry" button. (seen)
Ngôn ngữ chính
PHP
Star
47
Fork
35
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
25

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của craftcms/ckeditor

Tất cả issue của craftcms/ckeditor

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.