Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 24... Línea 24...
24
 * @category   cache
24
 * @category   cache
25
 * @copyright  2012 Sam Hemelryk
25
 * @copyright  2012 Sam Hemelryk
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 */
27
 */
Línea -... Línea 28...
-
 
28
 
-
 
29
defined('MOODLE_INTERNAL') || die();
28
 
30
 
Línea 29... Línea 31...
29
$definitions = array(
31
$definitions = array(
30
 
32
 
31
    // Used to store processed lang files.
33
    // Used to store processed lang files.
Línea 235... Línea 237...
235
    // Course reactive state cache.
237
    // Course reactive state cache.
236
    'courseeditorstate' => [
238
    'courseeditorstate' => [
237
        'mode' => cache_store::MODE_SESSION,
239
        'mode' => cache_store::MODE_SESSION,
238
        'simplekeys' => true,
240
        'simplekeys' => true,
239
        'simpledata' => true,
241
        'simpledata' => true,
-
 
242
        'invalidationevents' => [
-
 
243
            'changesincoursestate',
-
 
244
        ],
240
    ],
245
    ],
241
    // Course actions instances cache.
246
    // Course actions instances cache.
242
    'courseactionsinstances' => [
247
    'courseactionsinstances' => [
243
        'mode' => cache_store::MODE_REQUEST,
248
        'mode' => cache_store::MODE_REQUEST,
244
        'simplekeys' => true,
249
        'simplekeys' => true,
Línea 616... Línea 621...
616
        'mode' => cache_store::MODE_APPLICATION,
621
        'mode' => cache_store::MODE_APPLICATION,
617
        'simplekeys' => true,
622
        'simplekeys' => true,
618
        'simpledata' => true,
623
        'simpledata' => true,
619
        'staticacceleration' => true,
624
        'staticacceleration' => true,
620
    ],
625
    ],
-
 
626
 
-
 
627
    'routes' => [
-
 
628
        'mode' => cache_store::MODE_APPLICATION,
-
 
629
        'simplekeys' => true,
-
 
630
        'simpledata' => true,
-
 
631
        'canuselocalstore' => true,
-
 
632
    ],
-
 
633
    // Cache to store user AI policy acceptance status.
-
 
634
    'ai_policy' => [
-
 
635
        'mode' => cache_store::MODE_APPLICATION,
-
 
636
        'simplekeys' => true, // Cache must use simple keys (a-zA-Z0-9_).
-
 
637
        'simpledata' => true, // Cache stores integer values which are simple data.
-
 
638
        'staticacceleration' => true,
-
 
639
        'datasource' => \core_ai\cache\policy::class,
-
 
640
        'canuselocalstore' => true,
-
 
641
    ],
-
 
642
    // Cache to store AI rate limits.
-
 
643
    // Used by AI provider plugins to limit the number of requests to external services.
-
 
644
    'ai_ratelimit' => [
-
 
645
        'mode' => cache_store::MODE_APPLICATION,
-
 
646
        'simplekeys' => true, // Cache must use simple keys (a-zA-Z0-9_).
-
 
647
        'simpledata' => true, // Cache stores integer values which are simple data.
-
 
648
        'staticacceleration' => true,
-
 
649
    ],
-
 
650
 
-
 
651
    // The navigation_cache class used this cache to store the navigation nodes.
-
 
652
    'navigation_cache' => [
-
 
653
        'mode' => cache_store::MODE_SESSION,
-
 
654
        'simplekeys' => true,
-
 
655
        'simpledata' => true,
-
 
656
        'ttl' => 1800,
-
 
657
    ],
621
);
658
);