You are here

function lingotek_do_cache in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 6 lingotek.util.inc \lingotek_do_cache()
  2. 7.2 lingotek.util.inc \lingotek_do_cache()
  3. 7.3 lingotek.util.inc \lingotek_do_cache()
  4. 7.4 lingotek.util.inc \lingotek_do_cache()
  5. 7.5 lingotek.util.inc \lingotek_do_cache()
  6. 7.6 lingotek.util.inc \lingotek_do_cache()

Returns whether caching is enabled.

Return value

Boolean value.

1 call to lingotek_do_cache()
lingotek_get_document_targets in ./lingotek.remote.inc
Get the target language objects for a Lingotek document associated with a node.

File

./lingotek.util.inc, line 833
Utility functions.

Code

function lingotek_do_cache() {
  return !(variable_get('lingotek_flush_cache', FALSE) && user_access('use lingotek developer tools'));
}