Foorum::TheSchwartz::Worker::RemoveObject - remove object in Foorum


Foorum documentation  | view source Contained in the Foorum distribution.

Index


NAME

Top

Foorum::TheSchwartz::Worker::RemoveObject - remove object in Foorum

DESCRIPTION

Top

we move 'remove object' here to let HTTP/Apache handle process more faster.

WORKFLOW

Top

Generally we have a table 'object_remove' record the object_type+object_id.

(Here we do not use TheSchwartz databse because we need log them for a long time while TheSchwartz remove database records after done or failure.)

USAGE

Top

  use Foorum::SUtils qw/schema/;
  use Foorum::XUtils qw/theschwartz/;
  my $schema = schema();
  $schema->resultset('ObjectRemove')->create( { # or $c->model('DBIC')
      object_type => 'topic',
      object_id   => 12,
      time        => time(),
  } );
  my $client = theschwartz();
  $client->insert('Foorum::TheSchwartz::Worker::RemoveObject');

AUTHOR

Top

Fayland Lam <fayland at gmail dot com>


Foorum documentation  | view source Contained in the Foorum distribution.