Gallery Scanner

Introduction

TGP Rotator includes a gallery scanner which you can run at any time to check up on the galleries in your database. You can have multiple configurations of the gallery scanner, and it can be started through the control panel or by using cron.

Configuration

Before you use the gallery scanner, you will need to configure it through the control panel. Locate and click on the Gallery Scanner link in the Galleries section of the control panel menu. TGP Rotator will load a page where you can configure how you want the gallery scanner to run. Each of the remaining options are used to determine what happens to a gallery when it breaks the specified rule. You have 3 options of what to do with galleries that have broken a rule. Once you have everything set how you want it, press the Save button. To load or delete a previously existing configuration, select it from the drop down list and press the appropriate button.

Starting Through Control Panel

To start the gallery scanner through the control panel, locate and click on the Gallery Scanner link in the Galleries section of the control panel menu. At the bottom of the page you will see the Gallery Scanner Status box. Each of your configurations will be listed in that section, and will have displayed it's status and links to start and stop the scanner. Simply choose the configuration that you want to run, and click the corresponding [Start] link for that configuration. The status will be updated to indicate that the gallery scanner is being started.

You may start multiple configurations at once, but if you start the same configuration of the gallery scanner that is already running, the old one will be stopped and the new one will start from the beginning.

If you want to stop the gallery scanner, simply click on the corresponding [Stop] link. This will not stop the gallery scanner immediately, but will instead flag it to stop after it has completed scanning the current gallery. If it is in the middle of a long process (trying to make a connection to a server that is offline, for example) it may take 30 seconds or more before the gallery scanner stops. During that time it will be normal for the status text to change and display the current gallery it is scanning, but the scanner will eventually stop and display 'Not Running' for it's status.

Checking Status

To check the status of the gallery scanner through the control panel, locate and click on the Gallery Scanner link in the Manage Galleries section of the control panel menu. At the bottom of the page you will see the Gallery Scanner Status box. Each of your configurations will be listed in that section, and will have displayed it's status. The status will be updated approximately once every 5-10 seconds, and you will be able to see when the status is being queried when the Status text turns from black to red.

Starting Through Cron

Please see the Cron section of the manual.

Description of Options

Each of the options that you have available when you configure the gallery scanner is described in greater detail below.