[geeklog-devel] 1.5 error.log when DB dies
Tony Bibbs
tony at tonybibbs.com
Wed Aug 13 13:31:20 EDT 2008
<snip>
What am I missing now?
</snip>
Most caching scenarios go like so:
if (!$someValue = $cache->load($someKey)) {
$someValue = 'foo';
$cache->store($someValue, $someKey);
}
So if you have 10 geeklog sites the answer is to make sure $someKey is unique. This would be pretty easy, just pick something unique from the configuration file (site_url, path, etc) and use it as the key.
$someKey = md5($_CONF['site_url'] . '_' . $_CONF['path_logs']);
--Tony
More information about the geeklog-devel
mailing list