Ottimizzazione di Horde: Difference between revisions
Jump to navigation
Jump to search
| Line 25: | Line 25: | ||
GENERAL | GENERAL | ||
$conf[compress_pages] | $conf[compress_pages] = true; | ||
=Abilitare il caching javascript, css e temi= | =Abilitare il caching javascript, css e temi= | ||
Latest revision as of 11:40, 12 January 2017
Abilitare un gestore di cache php
Debian 7
sudo apt-get install php-apc
sudo /etc/init.d/apache2 restart
- Impostare nelle opzioni di configurazione
CACHING $conf[cache][use_memorycache] = 'APC';
Installare l'autoloader
- Questo necessita di un gestore di cache, come APC.
- Autoloader mappa i percorsi ai files: quindi ad ogni upgrade va ricostruita la cache: In this case you either need to use the provided script to empty the cache:
horde-autoloader-cache-prune
- Or empty the cache manually, e.g. by restarting the web server or deleting the cache file from the temporary directory.
- Installarlo:
sudo /var/www/horde/pear/pear -c /var/www/horde/pear.conf install -a -B horde/horde_autoloader_cache
Enable PHP output compression
- In the Horde configuration. If this option is set to true, and you have the php zlib extension installed, pages over a certain size will be compressed and sent to the browser as gzip-encoded data in order to save bandwidth. There is little reason not to enable this.
GENERAL
$conf[compress_pages] = true;
Abilitare il caching javascript, css e temi
- Sempre nella config fi HORDE
Installare la libreria horde_lz4
sudo /var/www/horde/pear/pear -c /var/www/horde/pear.conf install -a -B horde/horde_lz4