HEX
Server: Apache
System: Linux 3b2f6704f3ac 4.4.0-101-generic #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017 x86_64
User: (2182)
PHP: 7.4.33
Disabled: proc_open, passthru, escapeshellcmd, exec, shell_exec, system, ini_alter, dl, popen, php_check_syntax, show_source, highlight_file, symlink, link, openlog, apache_child_terminate
Upload Files
File: /home/defaultwebsite/public/wp-content/plugins/reviews-feed/class/Common/FeedCacheUpdater.php
<?php
/**
 * Class FeedCacheUpdater
 *
 * @since 1.0
 */
namespace SmashBalloon\Reviews\Common;

class FeedCacheUpdater {

	/**
	 * @var array
	 */
	private $batch;

	public function __construct( $batch ) {
		$this->batch = $batch;
	}

	public function do_updates() {
		foreach ($this->batch as $single_feed) {
			$atts = !empty($single_feed['feed_id']) ? array('feed' => $single_feed['feed_id']) : array();
			$feed_id = !empty($single_feed['feed_id']) ? $single_feed['feed_id'] : 0;
			$feed = Util::sbr_is_pro() ? new \SmashBalloon\Reviews\Pro\Feed($atts, $feed_id, new FeedCache($feed_id, 0)) : new \SmashBalloon\Reviews\Common\Feed($atts, $feed_id, new FeedCache($feed_id, 0));
			$feed->get_set_cache();
		}
	}
}