TEXT CACHING

------------

I have a site which really needs this, so I went ahead with it already.

This add-on will cache formatted texts in the database and use them
for a specified timeperiod.

By default it is disabled.   Enable it with:

  $CFG->cachetext = 600;   // in seconds
This commit is contained in:
moodler 2004-02-09 12:27:34 +00:00
parent 6579224b6a
commit d363047eb0
6 changed files with 53 additions and 1 deletions

View file

@ -154,6 +154,14 @@ $CFG->admin = 'admin';
// Prevent scheduled backups from operating (and hide the GUI for them)
// Useful for webhost operators who have alternate methods of backups
// $CFG->disablescheduledbackups = true;
//
// On busy sites that use filters (such as the glossary autolinking) this
// may help - it specifies time in seconds to keep copies of formatted texts.
// $CFG->cachetext = 600;
// It has some disadvantages:
// 1) Texts will take this long to regenerate, so changes to the glossary
// will not be evident immediately.
// 2) It won't work with filters that use user settings eg: multilang