31,029
edits
| Line 42: | Line 42: | ||
This feature seems to fails on HTTPS (security error for an unknown reason). | This feature seems to fails on HTTPS (security error for an unknown reason). | ||
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). Use [[Module MemCached EN]] that has no limitations instead of this option. | - 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). Use [[Module MemCached EN]] that has no limitations instead of this option. | ||
- 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. | |||
- To have all optimizations enabled, you must set all bits (Example: MAIN_OPTIMIZE_SPEED=7). | |||
- Rem: To increase performance, you can also set your apache to activate cache of resources by adding the directives: | |||
<source lang="ini"> | |||
# Cache for static resources (Enable expiration and set it to one month) | |||
ExpiresActive On | |||
ExpiresByType image/x-icon A2592000 | |||
ExpiresByType image/gif A2592000 | |||
ExpiresByType image/png A2592000 | |||
ExpiresByType image/jpeg A2592000 | |||
ExpiresByType text/javascript A2592000 | |||
ExpiresByType application/javascript A2592000 | |||
</source> | |||
* MAIN_INPUT_DESC_HEIGHT => Number of lines in input area of product lines when editing invoices, proposals, orders, ... | * MAIN_INPUT_DESC_HEIGHT => Number of lines in input area of product lines when editing invoices, proposals, orders, ... | ||