3 // Define constants that are used only on a production environment
4 // See file boot.php for more info
7 * Performance tricks for production environments.
9 * Disable callback getters/setters. If you allways use
10 * AkActiveRecord::get('attribute_name') and AkActiveRecord::set('attribute_name', $value)
11 * instead of AkActiveRecord::getAttributeName and AkActiveRecord::setAttributeName
12 * you might want to disable thath functionality by uncommenting the next two line.
14 // ak_define('ACTIVE_RECORD_ENABLE_CALLBACK_SETTERS', false);
15 // ak_define('ACTIVE_RECORD_ENABLE_CALLBACK_GETTERS', false);
18 * These settings can also help on heavy load sites, but please TEST that these new defaults
19 * don't break you working application.
21 * DONT CHANGE ANYTHING IF YOU DON'T KNOW WHAT IT MEANS.
23 // ak_define('ACTIVE_RECORD_VALIDATE_TABLE_NAMES', false);
24 // ak_define('ACTIVE_RECORD_SKIP_SETTING_ACTIVE_RECORD_DEFAULTS', true);
25 // ak_define('ACTIVE_RECORD_ENABLE_PERSISTENCE', true);
26 // ak_define('ACTIVE_RECORD_CACHE_DATABASE_SCHEMA', true);
27 // ak_define('ACTIVE_RECORD_CACHE_DATABASE_SCHEMA_LIFE', 86400);