function lingotek_refresh_api_cache in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.util.inc \lingotek_refresh_api_cache()
- 7.4 lingotek.util.inc \lingotek_refresh_api_cache()
- 7.6 lingotek.util.inc \lingotek_refresh_api_cache()
lingotek_refresh_api_cache utility
1 string reference to 'lingotek_refresh_api_cache'
- lingotek_admin_utilities_form in ./
lingotek.admin.inc - Utilities Form
File
- ./
lingotek.util.inc, line 1045 - Utility functions.
Code
function lingotek_refresh_api_cache($show_messages = TRUE) {
LingotekLog::trace(__METHOD__);
$api = LingotekApi::instance();
// Call methods with $reset = TRUE to update our locally cached values.
$api
->listProjects(TRUE);
$api
->listWorkflows(TRUE);
$api
->listVaults(TRUE);
if ($show_messages) {
drupal_set_message(t('Project, workflow, and vault information has been refreshed.'));
}
}