Hello,

For some reason even when I turn off cache in admin settings, I see that cache entries are being entered into the 'cache' mysql table. I am curious if there is a way to shut the caching system off manually.

Thanks,

Ivan

Comments

mudanoman’s picture

In bootstrap.inc I see:

define('CACHE_DISABLED', 0);
define('CACHE_ENABLED', 1);
.
.
.

$cache = db_fetch_object(db_query("SELECT data, created, headers, expire FROM {cache} WHERE cid = '%s'", $key));

However, when I turn off the cache settings in admin and truncate the table...I seem to get entries reappear in the cache table...ie:

variables [BLOB - 30.8 KB] 0 1162870364
menu:0:en [BLOB - 72.8 KB] 1162956769 1162870369
filter:1:5f6a5873bfa6a07450556e1bc5349be1 [BLOB - 267 Bytes] 1162957070 1162870670
filter:1:83bc1192f7669afca9854bbce0b75d9e [BLOB - 208 Bytes] 1162957070 1162870670

It just seems to never stop caching, even when I shut off the settings?!? Any advice?

Thanks,

Ivan

catch’s picture

OK I can answer this one I think. The cache settings in Drupal are for "page caching" only. Other things are cached as well - like menus and I think sessions, and you can't switch this on or off from the admin screen.