30,997
edits
| Line 81: | Line 81: | ||
Principle: Add into '''Home-Setup-Other''' the constant MAIN_OPTIMIZE_SPEED. If value of constant has bit 1 set, Dolibarr will use shared memory to cache translation of language files. This means that only one language can be used (the one defined by first user that log after the Apache server reboot). Also shared memory may be not stable with some OS (like Windows). Use instead of this option, the [[Module MemCached EN]] that has no limits and is more efficient. | Principle: Add into '''Home-Setup-Other''' the constant MAIN_OPTIMIZE_SPEED. If value of constant has bit 1 set, Dolibarr will use shared memory to cache translation of language files. This means that only one language can be used (the one defined by first user that log after the Apache server reboot). Also shared memory may be not stable with some OS (like Windows). Use instead of this option, the [[Module MemCached EN]] that has no limits and is more efficient. | ||
== Disable "on fly" PDF generation == | == Disable "on fly" PDF generation == | ||
| Line 100: | Line 94: | ||
Principle: Add into '''Home-Setup-Other''' the constant MAIN_OPTIMIZE_SPEED. If value of constant has bit 2 defined (Example: MAIN_OPTIMIZE_SPEED=4), Dolibarr will return pages compressed into GZ (and if browser support it). This consume more CPU on server but reduce transfer time. Use it with slow connexion. | Principle: Add into '''Home-Setup-Other''' the constant MAIN_OPTIMIZE_SPEED. If value of constant has bit 2 defined (Example: MAIN_OPTIMIZE_SPEED=4), Dolibarr will return pages compressed into GZ (and if browser support it). This consume more CPU on server but reduce transfer time. Use it with slow connexion. | ||
Prefer to use compression by Apache than this trip. Do not use both methods. | Prefer to use compression by Apache than this trip. Do not use both methods. | ||
== Disable Canvas feature == | |||
Efficiency: * | |||
Principle: Add into '''Home-Setup-Other''' the constant MAIN_DISABLE_CANVAS to value 1. This will disable canvas features that might be used by external modules and save one database request each time you go on page to show an object. | |||
However, if an external module used canvas, this will break this module. If you did not install and do not plan to install a complementary external modules, using this setup is safe. | |||
Note: To enable all optimization using MAIN_OPTIMIZE_SPEED, you must enable all bits (Example: MAIN_OPTIMIZE_SPEED=7 so 1+2+4 contains bit 0, 1 and 2). | Note: To enable all optimization using MAIN_OPTIMIZE_SPEED, you must enable all bits (Example: MAIN_OPTIMIZE_SPEED=7 so 1+2+4 contains bit 0, 1 and 2). | ||