mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
74 lines
2.3 KiB
PHP
74 lines
2.3 KiB
PHP
<?php
|
|
// This file is part of Moodle - http://moodle.org/
|
|
//
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
/**
|
|
* Core cache definitions.
|
|
*
|
|
* This file is part of Moodle's cache API, affectionately called MUC.
|
|
* It contains the components that are requried in order to use caching.
|
|
*
|
|
* @package core
|
|
* @category cache
|
|
* @copyright 2012 Sam Hemelryk
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
|
|
$definitions = array(
|
|
|
|
// Used to store processed lang files.
|
|
'string' => array(
|
|
'mode' => cache_store::MODE_APPLICATION,
|
|
'simpledata' => true,
|
|
'persistent' => true,
|
|
'persistentmaxsize' => 3
|
|
),
|
|
|
|
// Used to store database meta information.
|
|
'databasemeta' => array(
|
|
'mode' => cache_store::MODE_APPLICATION,
|
|
'requireidentifiers' => array(
|
|
'dbfamily'
|
|
),
|
|
'persistent' => true,
|
|
'persistentmaxsize' => 2
|
|
),
|
|
|
|
// Used to store data from the config + config_plugins table in the database.
|
|
'config' => array(
|
|
'mode' => cache_store::MODE_APPLICATION,
|
|
'persistent' => true,
|
|
'simpledata' => true
|
|
),
|
|
|
|
// Event invalidation cache.
|
|
'eventinvalidation' => array(
|
|
'mode' => cache_store::MODE_APPLICATION,
|
|
'persistent' => true,
|
|
'requiredataguarantee' => true,
|
|
'simpledata' => true,
|
|
),
|
|
|
|
// Cache for question definitions. This is used by the question_bank class.
|
|
// Users probably do not need to know about this cache. They will just call
|
|
// question_bank::load_question.
|
|
'questiondata' => array(
|
|
'mode' => cache_store::MODE_APPLICATION,
|
|
'requiredataguarantee' => false,
|
|
'datasource' => 'question_finder',
|
|
'datasourcefile' => 'question/engine/bank.php',
|
|
),
|
|
);
|