F4ilji
169a2f5654
changes
2026-04-08 14:14:38 +05:00
F4ilji and Qwen-Coder
cc20906062
fix(IMAP): исправить загрузку вложений — setFetchBody(true) необходим для структуры
...
Проблема: setFetchBody(false) не загружал структуру письма,
поэтому getAttachments() возвращал пустой список.
Исправления:
- FetchUnreadEmailsTask: setFetchBody(true) для загрузки структуры (вложения)
- FetchUnreadEmailsTask: конвертация Attribute в строку для subject
- config/imap.php: убраны fetch_body/fetch_flags (контроль на уровне Query)
- Обновлена документация
Fix: "В письме не найдено вложений" ошибка при обработке email
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-06 22:17:21 +05:00
F4ilji and Qwen-Coder
c115a5c7a7
fix(IMAP): оптимизация обработки email для предотвращения memory exhaustion
...
Корневая проблема: библиотека webklex/php-imap загружала все тела писем
по умолчанию, что приводило к исчерпанию 256MB памяти при 50+ письмах.
Решение (3 уровня):
Уровень 1 - Конфигурация:
- config/imap.php: добавлены fetch_body=false, fetch_flags=false, fetch_limit=20
- php.ini: увеличен memory_limit с 256M до 1G, добавлены OPcache настройки
Уровень 2 - Оптимизация кода:
- FetchUnreadEmailsTask: setFetchBody(false), лимиты, MemoryAwareTrait
- FetchEmailNewsAction: batch-обработка (10 писем), gc_collect_cycles()
- DownloadAttachmentsTask: lazy load вложений, extension whitelist (security)
- ConnectToImapTask: MemoryAwareTrait для мониторинга
Уровень 3 - Инфраструктура:
- ProcessEmailNewsJob: queue job для асинхронной обработки (3 попытки, 300s timeout)
- FetchEmailNewsCommand: поддержка --async режима
- MemoryAwareTrait: reusable трейт для мониторинга памяти
Security fixes:
- Extension whitelist для предотвращения path traversal
- Убраны реальные email из config/imap.php
- Добавлена проверка на null message объект
Docs:
- README_EMAIL_OPTIMIZATION.md: полная документация по оптимизации
Fixes: Allowed memory size of 268435456 bytes exhausted
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com >
2026-04-06 22:08:03 +05:00
F4ilji
1256adba98
changes
2026-03-23 10:50:31 +05:00
F4ilji
a3948c872e
Changes
2026-03-20 21:47:02 +05:00
F4ilji
1f61601e05
add cors rules
2026-01-09 19:07:51 +05:00
F4ilji
2d101dcdda
feat: Refactor MainController and related tasks to follow Porto architecture
...
- Moved logic from MainController to dedicated action and task classes.
- Introduced GetMainPageDataAction, GetEducationsDataTask, GetRecentPostsTask, GetUpcomingEventsTask, and GetPageDataTask for better separation of concerns.
- Updated routes to use the new MainController from the Main container.
- Deprecated the old MainController with a clear message for future removal.
- Updated caching mechanisms to use the new task classes.
- Adjusted environment variable access to use config() instead of env() for better practice.
- Added new MainPageResource for structured data response.
- Updated .gitignore to exclude QWEN.md.
- Added Jenkins service to docker-compose for CI/CD integration.
2025-12-16 12:20:01 +05:00
F4ilji
8bb7886ef7
Enhance TinyEditor configuration by refining 'test' profile settings and improving paste handling options
2025-12-02 14:23:00 +05:00
F4ilji
72af09d93d
Add Yandex Metrika integration for tracking; update FindSliderBySlugTask to ensure active slides are filtered correctly based on time; enhance app.blade.php for conditional Yandex Metrika script inclusion based on environment.
2025-09-27 22:35:36 +05:00
F4ilji
335784231a
Add Fruitcake CORS package and update CORS configuration to allow all methods, origins, and headers for improved API accessibility.
2025-09-06 00:17:51 +05:00
F4ilji
29daa1e3aa
Update CORS configuration to allow all paths for enhanced API accessibility.
2025-09-05 23:59:40 +05:00
F4ilji
525c9edc65
Refactor VK service URLs to use 'vk.ru' instead of 'vk.com' for consistency; update CORS configuration to allow additional methods and origins, enhancing API security and flexibility.
2025-09-05 23:42:06 +05:00
F4ilji
8b213ee803
Update PHP version requirement to ^8.2 in composer files, refactor User model access control logic, clean up MainSectionResource, enhance EditMainSection to include related pages, modify AppServiceProvider to clear subsection cache, change fallback locale to 'en', and improve DesktopNavBar and BasicFooter components for better accessibility and content accuracy.
2025-09-01 13:48:24 +05:00
F4ilji
c01016a154
Migrate backend to Porto architecture and fix minor bugs
...
- Fully transitioned the backend to the Porto architectural pattern
- Improved code organization and maintainability
- Fixed minor bugs and inconsistencies
2025-05-12 08:47:43 +05:00
F4ilji
453fb4cccc
major change fixing bugs when running SSR in the project
2025-04-26 22:59:46 +05:00
F4ilji
aea6304ac4
fixing bugs
2025-04-20 15:05:16 +05:00
F4ilji
21c4b7c528
added ForceHttpsServiceProvider, added fix in PageResourceList
2025-04-17 20:07:08 +05:00
F4ilji
b1d3921ffd
increase upload file size and small changes
2025-04-06 21:33:55 +05:00
F4ilji
a3b964c1ca
fix bugs and add log viewer package
2025-04-06 18:49:40 +05:00
F4ilji
49072e50c7
Rework frontend
2025-03-23 00:38:16 +05:00
f4ilji
3385dc5807
Changes
2025-01-30 00:31:40 +05:00
f4ilji
bad611eb84
Changes
2025-01-15 15:31:37 +05:00
f4ilji
6b48c31afd
Changes
2025-01-13 13:56:50 +05:00
f4ilji
bbc9fda376
Changes
2024-11-25 14:23:49 +05:00
f4ilji
048f046dcf
Changes
2024-11-22 18:14:48 +05:00
f4ilji
c3d266a6f7
Changes
2024-11-22 17:45:11 +05:00
f4ilji
4bb3e70f1f
Changes
2024-11-21 21:22:39 +05:00
f4ilji
4b693240e0
Changes
2024-11-05 15:08:08 +05:00
f4ilji
6d516d1750
Changes
2024-10-28 12:57:16 +05:00
f4ilji
cebc584a14
Changes
2024-10-04 12:48:19 +05:00
f4ilji
b686638a39
first commit
2024-09-19 16:06:49 +05:00