$stories = $c->model('stories');
}
else {
- $stories = $c->ezcache->model('stories', { expire => CACHE_SEC });
+ $stories = $c->ccache->model('stories');
}
my $items = $stories->select(hide_future => !$user->{is_admin},
public_only => !$user->{is_admin},
$timeline = $c->model('timeline');
}
else {
- $timeline = $c->ezcache->model('timeline', { expire => CACHE_SEC });
+ $timeline = $c->ccache->model('timeline');
}
my $items = $timeline->select(limit => $limit);
$timeline = $c->model('timeline');
}
else {
- $timeline = $c->ezcache->model('timeline', { expire => CACHE_SEC });
+ $timeline = $c->ccache->model('timeline');
}
my $items = $timeline->select(limit => $limit,
order_by => {popularity => "DESC"},
$comments = $c->model('comments');
}
else {
- $comments = $c->ezcache->model('comments', { expire => CACHE_SEC });
+ $comments = $c->ccache->model('comments');
}
my $items = $comments->select(limit => $limit + 1,
order_by => {create_time => 'DESC'});
$journals = $c->model('journals');
}
else {
- $journals = $c->ezcache->model('journals', { expire => CACHE_SEC });
+ $journals = $c->ccache->model('journals');
}
my $items = $journals->select(limit => $limit + 1,
order_by => {create_time => 'DESC'});
$submissions = $c->model('submissions');
}
else {
- $submissions = $c->ezcache->model('submissions', { expire => CACHE_SEC });
+ $submissions = $c->ccache->model('submissions');
}
my $items = $submissions->select(limit => $limit + 1,
order_by => {create_time => 'DESC'});
$polls = $c->model('polls');
}
else {
- $polls = $c->ezcache->model('polls', { expire => CACHE_SEC });
+ $polls = $c->ccache->model('polls');
}
my $items = $polls->select(limit => $limit + 1,
order_by => {create_time => 'DESC'});