Minor edits to improve English.

Thomas Willingham 2013-10-06 17:04:13 -07:00
parent 403b779710
commit a1fef82f49

@ -1,11 +1,11 @@
A little guide to increase the performance of a friendica site
A little guide to increase the performance of a Friendica site
At first
========
Feel free to ask the friendica support at
Feel free to ask at Friendica support at
<https://helpers.pyxis.uberspace.de/profile/helpers> if you need some
clarification about the following instruction or if you need help in any
clarification about the following instructions or if you need help in any
other way.
System configuration
@ -16,48 +16,48 @@ Please go to /admin/site/ on your system and change the following values:
* Set "JPEG image quality" to 50.
This value reduces the data that is send from the server to the client.
50 is a value that doesn't influences image qualitity too much.
50 is a value that doesn't influences image quality too much.
* Set "OStatus conversation completion interval" to "never".
if you are having many OStatus contacts then completing of conversations
can be very time wasting. The downside: You won't see every answer in
OStatus conversations.
If you have many OStatus contacts then completing of conversations
can be very time wasting. The downside: You won't see every comment in
OStatus threads.
* Set "Path for lock file" to an empty folder outside your web root.
Lock files help avoiding the situation that several background processes
run at the same time.
Lock files help avoid the possibility of several background processes
running at the same time.
For example: It can happen the the poller.php is working longer than
expected. When there would be no lock file than maybe several instances
of poller.php would run at the same time - which would slow down the
system and would affect the maximum numbers of processes and database
For example: It can happen that the poller.php takes longer than
expected. When there is no lock file, it is possible for several instances
of poller.php to run at the same time - which would slow down the
system and affect the maximum numbers of processes and database
connections.
Please define a full file path that is writable by the web server
process. If your site would be located at "/var/www/sitename/htdocs/"
you maybe could create a folder "/var/www/sitename/temp/".
Please define a full file path that is writeable by the web server
process. If your site is located at "/var/www/sitename/htdocs/"
you could maybe create a folder "/var/www/sitename/temp/".
* Enable "Use MySQL full text engine"
When using MyISAM (default) this speeds up the search.
When using MyISAM (default) this speeds up search.
* Set "Path to item cache" to an empty value outside your web root.
Parsed BBCode and some external images will be put there. Parsing BBCode
is a time wasting process that also uses much CPU speed.
is a time wasting process that also makes heave use of the CPU.
You can use the same folder like you used for the lock file.
You can use the same folder you used for the lock file.
Warning!
--------
The folder for the item cache is cleaned up regularly. Every file that
exceeds the cache duration is deleted. If you accidentally would point
the cache path to your web root then you would delete your web root!
The folder for item cache is cleaned up regularly. Every file that
exceeds the cache duration is deleted. If you accidentally point
the cache path to your web root then you will delete your web root!
So ensure twice that the folder only contains temporary content that can
So double check that the folder only contains temporary content that can
be deleted at any time.
You have been warned.
@ -78,7 +78,8 @@ Alternate Pagination
### Description
This plugin reduces the database load massively. Downside: You can't see
anymore the number of pages.
the total number of pages available at each module, and have this replaced
with "older" and "newer" links.
### Administration
@ -89,14 +90,14 @@ Privacy Image Cache
### Description
This plugin is prefetching external content and stores it into the
This plugin pre-fetches external content and stores it in the
cache. Besides speeding up the page rendering it is also good for
keeping the privacy of your users, since embedded pictures would be
the privacy of your users, since embedded pictures are
loaded from your site and not from a foreign site (that could spy on the
IP addresses).
Additionally it helps with content from external sites that are having a
slow performance or that are aren't online all the time.
Additionally it helps with content from external sites that have
slow performance or aren not online all the time.
### Administration
@ -124,12 +125,12 @@ every page:
* Others: Everything else :)
* Total: The sum of all above values
These values are showing your performance problems.
These values show your performance problems.
Webserver
=========
If you are using apache please enable the following modules.
If you are using Apache please enable the following modules.
Cache-Control
-------------
@ -175,7 +176,7 @@ APC
APC is an opcode cache. It speeds up the processing of PHP code.
When APC is enabled, friendica uses it to store configuration data
When APC is enabled, Friendica uses it to store configuration data
between different requests. This helps speeding up the page creation
time.
@ -184,7 +185,7 @@ Database
There are scripts like tuning-primer.sh <http://www.day32.com/MySQL/>
and mysqltuner.pl <http://mysqltuner.pl> that analyzes your database
server and that are giving hints on values that could be changed.
server and give hints on values that could be changed.
Please enable the slow query log. This helps being aware of performance
problems.