30,997
edits
| Line 95: | Line 95: | ||
This will disable generation of a new PDF each time you make a change on element. PDF generation will happens only when you click on "Generate" button. | This will disable generation of a new PDF each time you make a change on element. PDF generation will happens only when you click on "Generate" button. | ||
== | == Compression of resources by Dolibarr == | ||
Efficiency: * | Efficiency: ** | ||
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. | |||
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). | ||