fix: [Feeds] Don't try to find caches for feeds that don't have caching enabled

pull/3658/head
iglocska 2018-09-07 13:49:56 +02:00
parent 1ab8a4e710
commit fac5ffa7f3
1 changed files with 2 additions and 1 deletions

View File

@ -1224,7 +1224,8 @@ class Feed extends AppModel
$fields = array('id', 'input_source', 'source_format', 'url', 'provider', 'name', 'default');
$feeds = $this->find('all', array(
'recursive' => -1,
'fields' => $fields
'fields' => $fields,
'conditions' => array('Feed.caching_enabled' => 1)
));
// we'll use this later for the intersect
$fields[] = 'values';