PHP Optimization

Default Setting

realpath_cache_size=16K
realpath_cache_ttl=120

Optimized Setting

realpath_cache_size=1M
realpath_cache_ttl=86400

Check Current Real Path Cache Size and Content

<?php
var_dump(realpath_cache_size());
var_dump(realpath_cache_get());
?>

Reference:

Leave a Reply

Your email address will not be published. Required fields are marked *