Difference between revisions of "Fog Tweaks"
m (→DB changes) |
m (→DB changes) |
||
Line 1: | Line 1: | ||
− | = DB | + | = Speed up DB queries = |
*Use a Persistent DB Connection. This uses the already established connection to get the data, rather than reopening the socket or TCP link | *Use a Persistent DB Connection. This uses the already established connection to get the data, rather than reopening the socket or TCP link |
Revision as of 14:45, 11 December 2014
Speed up DB queries
- Use a Persistent DB Connection. This uses the already established connection to get the data, rather than reopening the socket or TCP link
- Open this file /var/www/fog/lib/fog/Config.class.php
- Go to line
define('DATABASE_HOST', 'localhost');
- Change to:
define('DATABASE_HOST', 'p:127.0.0.1');