Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Commit

Permalink
recent limit
Browse files Browse the repository at this point in the history
  • Loading branch information
valpackett committed Jul 14, 2012
1 parent 658f89f commit eb0e766
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/components/uncacher/model/uncacher/uncacher.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function uncache($res, $recache) {

function uncacheRecent($minutes, $recache) {
$resources = $this->modx->getIterator('modResource', array(
'pub_date:>=' => strtotime('now - '.$minutes.' minutes')
'pub_date:>=' => strtotime('now - '.$minutes.' minutes - 5 seconds'),
'pub_date:<' => strtotime('now + 5 seconds'),
));

foreach ($resources as $idx => $res) {
Expand Down

0 comments on commit eb0e766

Please sign in to comment.