Versions:

This document contains information about a future release and not the current stable version (4). Be aware that information on this page may change and API's may not be stable for production use.

Resource Usage

SilverStripe tries to keep its resource usage within the documented limits (see the server requirements).

These limits are defined through memory_limit and max_execution_time in the PHP configuration. They can be overwritten through ini_set(), unless PHP is running with the Suhoshin Patches or in "safe mode".

Most shared hosting providers will have maximum values that can't be altered.

For certain tasks like synchronizing a large assets/ folder with all file and folder entries in the database, more resources are required temporarily. In general, we recommend running resource intensive tasks through the command line, where configuration defaults for these settings are higher or even unlimited.

SilverStripe can request more resources through increase_memory_limit_to() and increase_time_limit_to() functions.

function myBigFunction() {
    increase_time_limit_to(400);

    // or..

    set_increase_time_limit_max();

    // ..
}

Was this article helpful?