Use a component based on the atg.purge.PurgeService
class to schedule asset purge operations. The PurgeService
class implements the atg.service.scheduler.SingletonSchedulableService
interface and invokes an asset purge function. You can use a component based on PurgeService
with the scheduler services provided with Oracle ATG Web Commerce. See information about using scheduler services in the ATG Platform Programming Guide.
To schedule an asset purge function:
Configure a component based on the
atg.purge.PurgeService
class.Set its
purgeProducer
property to the Nucleus path of the PurgeProducer component for the asset purge function. See Configuring Basic Purging Components.Set its
purgeConfiguration
property to the Nucleus path of the PurgeConfiguration component for the asset purge function. See Configuring Basic Purging Components.
Configure additional properties as required by the Oracle ATG Web Commerce scheduler services. See information about scheduler services in the ATG Platform Programming Guide.
The following example shows the asset purge component property values for a scheduling component based on atg.purge.PurgeService
.
$class=atg.purge.PurgeService purgeProducer=/mycompany/purge/OrganizationPurgeProducer purgeConfiguration=/mycompany/purge/OrganizationPurgeConfiguration # Configure properties as required by scheduler services