Commit 7d6090f0 authored by Mike Hibler's avatar Mike Hibler

Add a LookupSync method to do a Lookup that refreshes the cache from the DB.

Until it is fully converted to using the Node object, stated is going to need
to use this method since it still does a lot of direct updates to the DB.
parent 72de249f
......@@ -228,6 +228,19 @@ sub LookupRow($$)
return $self;
# Force a reload of the data.
sub LookupSync($$)
my ($class, $nodeid) = @_;
# delete from cache
return Lookup($class, $nodeid);
# Break circular reference someplace to avoid exit errors.
my $self = shift;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment