FPC Warmer logs allocate too much space in database. How to solve this?

FPC Warmer logs allocate too much space in database. How to solve this?

Sometimes, data in the amasty_fpc_activity table may pile up and take a lot of space, which can cause certain performance issues on your website. To prevent this, it is recommended to regularly clear the Activity Log.

You can do this manually or set up automatic cleaning. Here’s how to manage both methods:

1. To manually clear the table, go to the Admin Panel, navigate to Amasty > Full Page Cache Warmer > Activity Log and press the Clear Log button.


Alternatively, you can clear the Activity Log directly from the Magento database. Simply execute the following SQL query:

TRUNCATE TABLE amasty_fpc_activity;

2. To enable automatic cleaning, navigate to Amasty > Full Page Cache Warmer > Configuration and activate the Activity Log Full-Cleaning option. It will automatically clean all the records that are available at the time of cleaning by Cron. The cron schedule can be set in Full-Cleaning Schedule option within the same configuration area.
.



Please note: if the Activity Log Full-cleaning feature is enabled, the Activity Log will be completely cleared by Cron. If Activity Log is used as Queue Generation Source we recommend you configure the Log cleanup run after the Queue Generation Schedule run.

Additionally, if customer activity is not used as an active Queue Generation Source for the warmer queue generation, it is possible to disable the log on the Full Page Cache Warmer configuration page: