mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
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:
parent
6579224b6a
commit
d363047eb0
6 changed files with 53 additions and 1 deletions
|
@ -165,6 +165,13 @@ CREATE TABLE prefix_scale (
|
|||
timemodified integer NOT NULL default '0'
|
||||
);
|
||||
|
||||
CREATE TABLE prefix_text_cache (
|
||||
id SERIAL PRIMARY KEY,
|
||||
md5key varchar(32) NOT NULL default '',
|
||||
formattedtext text,
|
||||
timemodified integer NOT NULL default '0'
|
||||
);
|
||||
|
||||
CREATE TABLE prefix_user (
|
||||
id SERIAL PRIMARY KEY,
|
||||
confirmed integer NOT NULL default '0',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue