Filter settings: Difference between revisions

From MoodleDocs
(content moved from Filters)
m (small re-wording)
Line 4: Line 4:
==Text cache lifetime==
==Text cache lifetime==


To reduce load on the server and to speed display of pages, Moodle can store previously processed pages (that have not changed) for a period of time. This setting controls the time for which processed pages are stored. A longer setting may improve performance but has the effect that changes to pages may not become visible for a time. You can switch caching off completely here.
Text filters can take a lot of processor power to analyze. If you have a large number of courses, the filters may slow your system. The text cache lifetime determines how often the filters run. If you set them to run too frequently, your system may
slow down. If you set them to run too infrequently, analyzing new content will take too long and users will notice. You should experiment to find the correct amount of time for your server.
 
==Filter uploaded files==
==Filter uploaded files==


Line 19: Line 21:
==Filter all strings==
==Filter all strings==


When set to yes, almost all Moodle text will be filtered. This is probably only necessary when using the [[Multi language content|multi-language filter]].
If checked, headings and titles can be displayed in different languages using the [[Multi language content|multi-language filter]].


==Filter settings in Moodle 1.5==
Note: Settings links for particular filters can be found in ''Administration > Modules > [[Filters]]''.


For earlier versions of Moodle, the ''filter/config.php'' file will need to be changed.  The following two settings affect the glossary, activity and resource linking filters:
==See also==


To convert only the first matching title on a page, insert or uncomment the  following line in config.php: <code>$CFG->filtermatchoneperpage = true;</code>
To convert only the first matching title in a discrete block of text, insert or uncomment the following line in config.php: <code>$CFG->filtermatchonepertext = true;</code>
==See also==
*[[Filters]]
*[[Filters]]
*[[Talk:Filter settings]] - for Filter settings in Moodle 1.5


[[Category:Filter]]
[[Category:Filter]]


[[fr:Réglages des filtres]]
[[fr:Réglages des filtres]]

Revision as of 14:09, 5 October 2007

Location: Administration > Appearance > Filter settings


Text cache lifetime

Text filters can take a lot of processor power to analyze. If you have a large number of courses, the filters may slow your system. The text cache lifetime determines how often the filters run. If you set them to run too frequently, your system may slow down. If you set them to run too infrequently, analyzing new content will take too long and users will notice. You should experiment to find the correct amount of time for your server.

Filter uploaded files

This setting enables uploaded files (HTML and text only) to be processed by the filters system. You can choose to have none, only HTML or all files filtered.

Filter match once per page

This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match on the complete page will be converted to a link. All others will be ignored.

Filter match once per text

This setting effects the glossary, activity and resource linking filters. If set to yes, only the first match in a discrete block of text will be converted to a link. All others in that text block will be ignored.

Filter all strings

If checked, headings and titles can be displayed in different languages using the multi-language filter.

Note: Settings links for particular filters can be found in Administration > Modules > Filters.

See also