i ief-framework DOCS

Performans


Giriş

IEF küçük + hafiftir, ama trafik arttıkça optimize edilmesi gereken noktalar vardır.


OpCache

PHP 8'in OpCache'i mutlaka açık olmalı:

; php.ini
opcache.enable=1
opcache.memory_consumption=256
opcache.max_accelerated_files=10000
opcache.validate_timestamps=0   ; production'da
opcache.revalidate_freq=0

Production deploy sonrası: php artisan cache:clear benzeri bir komut yok — service php-fpm reload veya opcache_reset() çağır.


Composer Autoload

Production deploy:

composer install --optimize-autoloader --no-dev --classmap-authoritative

Asset Optimization


Database

slow_query_log = 1
long_query_time = 1
slow_query_log_file = /var/log/mysql/slow.log

Profiling

Debug Bar

Dev'de sayfa altında SQL/route/memory/süre. Hızlı tanı için yeterli.

Detay: Debug Bar →

Xdebug

Tam stack trace + profiler:

xdebug.mode=develop,debug,profile
xdebug.start_with_request=yes
xdebug.output_dir=/tmp/xdebug

.cachegrind dosyalarını KCacheGrind/Webgrind ile aç.

Blackfire / Tideways

Production-safe APM araçları. IEF özel entegrasyon gerektirmez.


Sonraki: Cache →