mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +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
|
@ -155,6 +155,23 @@ CREATE TABLE `prefix_event` (
|
|||
KEY `courseid` (`courseid`),
|
||||
KEY `userid` (`userid`)
|
||||
) TYPE=MyISAM COMMENT='For everything with a time associated to it';
|
||||
# --------------------------------------------------------
|
||||
|
||||
#
|
||||
# Table structure for table `text_cache`
|
||||
#
|
||||
|
||||
CREATE TABLE `prefix_text_cache` (
|
||||
`id` int(10) unsigned NOT NULL auto_increment,
|
||||
`md5key` varchar(32) NOT NULL default '',
|
||||
`formattedtext` longtext NOT NULL,
|
||||
`timemodified` int(10) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `md5key` (`md5key`)
|
||||
) TYPE=MyISAM COMMENT='For storing temporary copies of processed texts';
|
||||
# --------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
#
|
||||
# Table structure for table `group`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue