~ubuntu-branches/ubuntu/saucy/moodle/saucy

« back to all changes in this revision

Viewing changes to lib/db/caches.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-09-09 15:22:35 UTC
  • mfrom: (1.1.17) (3.1.29 sid)
  • Revision ID: package-import@ubuntu.com-20130909152235-f5g7gphaseb84qeu
Tags: 2.5.2-1
* New upstream version: 2.5.2.
  - Incorporates S3 security patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
    // Used to store processed lang files.
32
32
    // The keys used are the component of the string file.
 
33
    // The persistent max size has been based upon student access of the site.
33
34
    'string' => array(
34
35
        'mode' => cache_store::MODE_APPLICATION,
35
36
        'simplekeys' => true,
36
37
        'simpledata' => true,
37
38
        'persistent' => true,
38
 
        'persistentmaxsize' => 3
 
39
        'persistentmaxsize' => 30
39
40
    ),
40
41
 
41
42
    // Used to store database meta information.
48
49
            'dbfamily'
49
50
        ),
50
51
        'persistent' => true,
51
 
        'persistentmaxsize' => 2
 
52
        'persistentmaxsize' => 15
52
53
    ),
53
54
 
54
55
    // Event invalidation cache.
78
79
 
79
80
    // HTML Purifier cache
80
81
    // This caches the html purifier cleaned text. This is done because the text is usually cleaned once for every user
81
 
    // and context combo. Text caching handles caching for the combonation, this cache is responsible for caching the
 
82
    // and context combo. Text caching handles caching for the combination, this cache is responsible for caching the
82
83
    // cleaned text which is shareable.
83
84
    'htmlpurifier' => array(
84
85
        'mode' => cache_store::MODE_APPLICATION,
235
236
        'mode' => cache_store::MODE_REQUEST,
236
237
        'persistent' => true,
237
238
    ),
 
239
    // Used to store external badges.
 
240
    'externalbadges' => array(
 
241
        'mode' => cache_store::MODE_APPLICATION,
 
242
        'simplekeys' => true,
 
243
        'ttl' => 3600,
 
244
    ),
238
245
);