In Drupal 7, i have found that CLEAR CACHE (on the Web Panel) is using extreme high Memory resource. Giant projects like mine, needs over 350MB to that process.

  • Then i set 400MB inside php.ini

So as far as i have investigated, i have found that having high memory limit (Globally) is totally the damage to the overall Performance because every single script is using that limit in memory.

  • Then i found, we can use separate/runtime setting as
    ini_set('memory_limit',____)

    only for the specific scripts.

So my question here is:

  • Why Drupal by default is NOT HAVING this ini_set('memory_limit',____) separately in Cache Clearing Script (as hardcoded or in Panel Setting, etc) ?