summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrel O\'Pry2007-01-24 21:32:09 (GMT)
committer Darrel O\'Pry2007-01-24 21:32:09 (GMT)
commit6bf0109f8895976e6963eeeba816953e43c6e1f0 (patch)
treef0f2a0300f1a66206965de8564915ca5a4df1d13
parentce6ee5e54bd035f5e8c0b6cc6ce19a72a05a7c2d (diff)
fixing cache set / get issue that was reaking havock.
-rw-r--r--imagecache.module7
1 files changed, 4 insertions, 3 deletions
diff --git a/imagecache.module b/imagecache.module
index 4346b8a..0a42809 100644
--- a/imagecache.module
+++ b/imagecache.module
@@ -172,8 +172,9 @@ function _imagecache_get_presets($reset = FALSE) {
return $presets;
}
- // Grab from cache saves building the array. Plus its a frequently used table.
- $cache = cache_get('imagecache:presets');
+ // Grab from cache saves building the array.
+ // Plus its a frequently used table.
+ $cache = cache_get('imagecache:presets', 'cache');
$presets = unserialize($cache->data);
// If the preset is not an array, cache_clear_all has been called
// there no/invalid data in the cache. Fall through and repopulate cache;
@@ -188,7 +189,7 @@ function _imagecache_get_presets($reset = FALSE) {
while($row = db_fetch_array($result)) {
$presets[$row['presetid']] = $row['presetname'];
}
- cache_set('imagecache:presets', serialize($presets));
+ cache_set('imagecache:presets', 'cache', serialize($presets));
// Clear the content.module cache (refreshes the list of formatters provided by imagefield.module)
content_clear_type_cache();
return $presets;