.. include:: _include.rst
.. highlight:: html+jinja
.. _options_feeds:
###########################
Feeds
###########################
**********************************
Do not save feed items in Repo
**********************************
By default, |asa2| will save every feed product in the :ref:`repo`. This is recommended for a better performance. If you do not want feed items to be stored in the Repo, activate this option.
***********************************
Add default category
***********************************
If set, a default category will be added to a feed item when it gets stored in the Repo. This is recommended to be able to know which items in the Repo came from a feed.
.. note::
Option "Repo cleanup" requires the default category feature to be enabled.
************************
Default category name
************************
Here you can set the default feed category name (see option above). If you leave it blank, |asa2| will use "Feeds" as default category name.
.. image:: _static/options_feed_default_category.png
:height: 216px
:width: 782px
:scale: 100%
:alt: Feed default category
************************
Feed name as category
************************
If set, the name of the feed will be added as category to a feed item when it gets stored in the Repo.
.. image:: _static/options_feed_name_as_category.png
:height: 439px
:width: 782px
:scale: 100%
:alt: Feed name as category
***********************
Remove unused from Repo
***********************
If set, feed items stored in the Repo which are no longer part of any feed, will be removed from the Repo automatically whenever a feed gets refreshed but at most once per hour. This only works if a default category is used for feed items (see option "Add default category" above).
.. note::
The auto-cleanup will only run once per hour. To clean up in the meantime, click the button as explained below.
************************
Repo cleanup
************************
.. image:: _static/options_feed_repo_cleanup_button.png
:height: 76px
:width: 587px
:scale: 100%
:alt: Feed repo cleanup button
Click this button to remove unused feed items from the :ref:`Repo` (as explained above). Check the logs to see what items have been removed.
.. image:: _static/options_feed_log_removed_items.png
:height: 252px
:width: 527px
:scale: 100%
:alt: Feed remove log