/**
  * @return FFImageSizeCacheManager
  */
 public static function get()
 {
     if (null == self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 public final function init($options, $stream, $feed)
 {
     $this->options = $options;
     $this->stream = $stream;
     $this->feed = $feed;
     $this->id = $feed->id;
     $this->errors = array();
     $this->count = $stream->getCountOfPosts();
     $this->imageWidth = $stream->getImageWidth();
     $this->cache = FFImageSizeCacheManager::get();
 }
 public function validate_options($plugin_options)
 {
     if (!empty($plugin_options['feeds_changed'])) {
         if ($plugin_options['feeds_changed'] === 'all') {
             FFCacheManager::clean(array('%'));
         } else {
             FFCacheManager::clean(explode(',', $plugin_options['feeds_changed']));
         }
         FFImageSizeCacheManager::clean();
     }
     foreach ($plugin_options as $key => $val) {
         $plugin_options[$key] = trim($val);
     }
     $options['feeds_changed'] = '';
     return $plugin_options;
 }