[Jifty-commit] jifty-dbi branch, master, updated. 0.60-3-g5cdc9e0
Jifty commits
jifty-commit at lists.jifty.org
Tue Jan 12 15:24:42 EST 2010
The branch, master has been updated
via 5cdc9e000728ba2f0a7a35190cabf26beaf1aa04 (commit)
from 51531a22fa59677fe7306bee2b7786987c47cd07 (commit)
Summary of changes:
lib/Jifty/DBI/Record/Memcached.pm | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 5cdc9e000728ba2f0a7a35190cabf26beaf1aa04
Author: Alex Vandiver <alexmv at bestpractical.com>
Date: Tue Jan 12 15:24:34 2010 -0500
Don't attempt to store undef values in memcached
diff --git a/lib/Jifty/DBI/Record/Memcached.pm b/lib/Jifty/DBI/Record/Memcached.pm
index 9279b69..ada7c3e 100755
--- a/lib/Jifty/DBI/Record/Memcached.pm
+++ b/lib/Jifty/DBI/Record/Memcached.pm
@@ -101,8 +101,10 @@ sub load_by_cols {
if ($rvalue) {
$self->_store();
if ( $key ne $self->_primary_key ) {
- $MEMCACHED->add( $key, $self->_primary_cache_key,
- $self->_cache_config->{'cache_for_sec'} );
+ my $cache_key = $self->_primary_cache_key;
+ $MEMCACHED->add( $key, $cache_key,
+ $self->_cache_config->{'cache_for_sec'} )
+ if defined $cache_key;
$self->{'loaded_by_cols'} = $key;
}
}
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list