cache_disable.module

Tracking 6.x-1.x branch
  1. drupal
    1. 6 contributions/cache_disable/cache_disable.module

Functions & methods

NameDescription
cache_disable_disable
cache_disable_enable

File

View source
  1. <?php
  2. if (!function_exists('cache_get')) {
  3. function cache_get($key, $table = 'cache') {
  4. return FALSE;
  5. }
  6. function cache_set($cid, $data, $table = 'cache', $expire = CACHE_PERMANENT, $headers = NULL) {
  7. return;
  8. }
  9. function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) {
  10. return;
  11. }
  12. }
  13. function cache_disable_enable() {
  14. variable_set('cache_inc', './'. drupal_get_path('module', 'cache_disable') .'/cache_disable.module');
  15. }
  16. function cache_disable_disable() {
  17. variable_del('cache_inc');
  18. }