invalidate stats on data edit
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 5 Jun 2010 18:06:37 +0000 (20:06 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sat, 5 Jun 2010 18:06:37 +0000 (20:06 +0200)
lib/MojoFacets/Data.pm

index 910a186..be11c7c 100644 (file)
@@ -790,6 +790,7 @@ sub edit {
                        $status = 201; # created
                        $loaded->{$path}->{modified}  = 1;
                        $self->session( 'modified' => 1 );
                        $status = 201; # created
                        $loaded->{$path}->{modified}  = 1;
                        $self->session( 'modified' => 1 );
+                       delete $loaded->{$path}->{stats};
        
                        $new_content = join("\xB6",@$v);
 
        
                        $new_content = join("\xB6",@$v);