forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-25290 cache: Cache API integration with core
- Loading branch information
Sam Hemelryk
committed
Oct 7, 2012
1 parent
8139ad1
commit d6a1f63
Showing
9 changed files
with
199 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
|
||
$string['actions'] = 'Actions'; | ||
$string['addinstance'] = 'Add instance'; | ||
$string['addstore'] = 'Add {$a} store'; | ||
$string['addstoresuccess'] = 'Successfully added a new {$a} store.'; | ||
$string['area'] = 'Area'; | ||
$string['caching'] = 'Caching'; | ||
$string['cacheadmin'] = 'Cache administration'; | ||
$string['cacheconfig'] = 'Configuration'; | ||
$string['cachedef_config'] = 'Config settings'; | ||
$string['cachedef_databasemeta'] = 'Database meta information'; | ||
$string['cachedef_eventinvalidation'] = 'Event invalidation'; | ||
$string['cachedef_locking'] = 'Locking'; | ||
$string['cachedef_string'] = 'Language string cache'; | ||
$string['component'] = 'Component'; | ||
$string['confirmstoredeletion'] = 'Confirm store deletion'; | ||
$string['defaultmappings'] = 'Default mappings'; | ||
$string['defaultmappings_help'] = 'These are the default stores that will be used if you don\'t map one or more stores to the cache definition.'; | ||
$string['defaultstoreactions'] = 'Default stores cannot be modified'; | ||
$string['default_application'] = 'Default application store'; | ||
$string['default_locking'] = 'Default store for locking'; | ||
$string['default_request'] = 'Default request store'; | ||
$string['default_session'] = 'Default session store'; | ||
$string['definition'] = 'Definition'; | ||
$string['definitionsummaries'] = 'Definition summaries'; | ||
$string['delete'] = 'Delete'; | ||
$string['deletestore'] = 'Delete store'; | ||
$string['deletestoreconfirmation'] = 'Are you sure you want to delete the "{$a}" store?'; | ||
$string['deletestorehasmappings'] = 'You cannot delete this store because it has mappings. Please delete all mappings before deleting the store'; | ||
$string['deletestoresuccess'] = 'Successfully deleted the cache store'; | ||
$string['editmappings'] = 'Edit mappings'; | ||
$string['editstore'] = 'Edit store'; | ||
$string['editstoresuccess'] = 'Succesfully edited the cache store.'; | ||
$string['editdefinitionmappings'] = '{$a} definition store mappings'; | ||
$string['ex_configcannotsave'] = 'Unable to save the cache config to file.'; | ||
$string['ex_unabletolock'] = 'Unable to acquire a lock for caching.'; | ||
$string['gethit'] = 'Get - Hit'; | ||
$string['getmiss'] = 'Get - Miss'; | ||
$string['invalidplugin'] = 'Invalid plugin'; | ||
$string['invalidstore'] = 'Invalid cache store provided'; | ||
$string['mappings'] = 'Store mappings'; | ||
$string['mappingdefault'] = '(default)'; | ||
$string['mappingprimary'] = 'Primary store'; | ||
$string['mappingfinal'] = 'Final store'; | ||
$string['mode'] = 'Mode'; | ||
$string['modes'] = 'Modes'; | ||
$string['mode_1'] = 'Application'; | ||
$string['mode_2'] = 'Session'; | ||
$string['mode_4'] = 'Request'; | ||
$string['none'] = 'None'; | ||
$string['plugin'] = 'Plugin'; | ||
$string['pluginsummaries'] = 'Plugin summaries'; | ||
$string['purge'] = 'Purge'; | ||
$string['requestcount'] = 'Test with {$a} requests'; | ||
$string['rescandefinitions'] = 'Rescan definitions'; | ||
$string['result'] = 'Result'; | ||
$string['set'] = 'Set'; | ||
$string['storeconfiguration'] = 'Store configuration'; | ||
$string['storename'] = 'Store name'; | ||
$string['storename_help'] = 'This sets the store name. It is used to identify the store within the system and can only consist of a-z A-Z 0-9 -_ and spaces. It also must be unique. If you attempt to use a name that has already been used you will recieve an error.'; | ||
$string['storenamealreadyused'] = 'You must choose a unique name for this store.'; | ||
$string['storenameinvalid'] = 'Invalid store name. You can only use a-z A-Z 0-9 -_ and spaces.'; | ||
$string['storeperformance'] = 'Cache store performance reporting - {$a} unique requests per operation.'; | ||
$string['storeready'] = 'Ready'; | ||
$string['storeresults_application'] = 'Store requests when used as an application cache.'; | ||
$string['storeresults_request'] = 'Store requests when used as a request cache.'; | ||
$string['storeresults_session'] = 'Store requests when used as a session cache.'; | ||
$string['stores'] = 'Stores'; | ||
$string['store_default_application'] = 'Default file store for application caches'; | ||
$string['store_default_locking'] = 'Default file store for locking'; | ||
$string['store_default_request'] = 'Default static store for request caches'; | ||
$string['store_default_session'] = 'Default session store for session caches'; | ||
$string['storesummaries'] = 'Store summaries'; | ||
$string['supports'] = 'Supports'; | ||
$string['supports_multipleidentifiers'] = 'multiple identifiers'; | ||
$string['supports_dataguarantee'] = 'data guarantee'; | ||
$string['supports_nativettl'] = 'ttl'; | ||
$string['supports_nativelocking'] = 'locking'; | ||
$string['supports_keyawareness'] = 'key awareness'; | ||
$string['tested'] = 'Tested'; | ||
$string['testperformance'] = 'Test performance'; | ||
$string['unsupportedmode'] = 'Unsupported mode'; | ||
$string['untestable'] = 'Untestable'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
$definitions = array( | ||
// Default cache for locking | ||
'locking' => array( | ||
'mode' => cache_store::MODE_APPLICATION, | ||
'mappingsonly' => true, | ||
), | ||
'string' => array( | ||
'mode' => cache_store::MODE_APPLICATION, | ||
'component' => 'core', | ||
'area' => 'string', | ||
'persistent' => true, | ||
'persistentmaxsize' => 3 | ||
), | ||
'databasemeta' => array( | ||
'mode' => cache_store::MODE_APPLICATION, | ||
'requireidentifiers' => array( | ||
'dbfamily' | ||
), | ||
'persistent' => true, | ||
'persistentmaxsize' => 2 | ||
), | ||
'config' => array( | ||
'mode' => cache_store::MODE_APPLICATION, | ||
'persistent' => true | ||
), | ||
// Event invalidation cache | ||
'eventinvalidation' => array( | ||
'mode' => cache_store::MODE_APPLICATION, | ||
'persistent' => true, | ||
'requiredataguarantee' => true | ||
) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters