cancel
Showing results for 
Search instead for 
Did you mean: 

debug.log filling up with message about cache invalidation

debug.log filling up with message about cache invalidation

Hi, I'm experiencing a serious issue with debug.log filling up with messages from  cache_invalidate like this

 

https://pastebin.com/Q477F7jU

 

It's getting to the point where the messages can fill the entire disk within a single day but I'm not sure why this is happening. The site is locked by basic authentication so there's virtually no traffic.

 

Yet this message keeps spamming.

 

I'm not sure what may be causing it, any ideas?

 

I'm on Magento 2.4.1

6 REPLIES 6

Re: debug.log filling up with message about cache invalidation

I ended up

- disabling cron

- truncating all index tables,

- reindexing the site manually

and flushing all caches.

 

This seems to have stopped the cache flush spam but I wonder what's the root cause for this issue.

Re: debug.log filling up with message about cache invalidation

@iowebgr  I've just noticed having this same issue.

How do you truncate the index tables?  I know how to do the other things...

thanks.

Re: debug.log filling up with message about cache invalidation

Hi, in my case it was

 

TRUNCATE TABLE `cataloginventory_stock_cl`;
TRUNCATE TABLE `catalogrule_product_cl`;
TRUNCATE TABLE `catalogrule_rule_cl`;
TRUNCATE TABLE `catalogsearch_fulltext_cl`;
TRUNCATE TABLE `catalog_category_product_cl`;
TRUNCATE TABLE `catalog_product_attribute_cl`;
TRUNCATE TABLE `catalog_product_category_cl`;
TRUNCATE TABLE `catalog_product_price_cl`;
TRUNCATE TABLE `customer_dummy_cl`;
TRUNCATE TABLE `design_config_dummy_cl`;
TRUNCATE TABLE `inventory_cl`;
#TRUNCATE TABLE `salesrule_rule_cl`;
#TRUNCATE TABLE `targetrule_product_rule_cl`;
#TRUNCATE TABLE `targetrule_rule_product_cl`;

UPDATE `mview_state` SET `version_id` = '0';
TRUNCATE TABLE `cron_schedule`;

Re: debug.log filling up with message about cache invalidation


@iowebgr wrote:

Hi, in my case it was

 

TRUNCATE TABLE `cataloginventory_stock_cl`;
TRUNCATE TABLE `catalogrule_product_cl`;
TRUNCATE TABLE `catalogrule_rule_cl`;
TRUNCATE TABLE `catalogsearch_fulltext_cl`;
TRUNCATE TABLE `catalog_category_product_cl`;
TRUNCATE TABLE `catalog_product_attribute_cl`;
TRUNCATE TABLE `catalog_product_category_cl`;
TRUNCATE TABLE `catalog_product_price_cl`;
TRUNCATE TABLE `customer_dummy_cl`;
TRUNCATE TABLE `design_config_dummy_cl`;
TRUNCATE TABLE `inventory_cl`;
#TRUNCATE TABLE `salesrule_rule_cl`;
#TRUNCATE TABLE `targetrule_product_rule_cl`;
#TRUNCATE TABLE `targetrule_rule_product_cl`;

UPDATE `mview_state` SET `version_id` = '0';
TRUNCATE TABLE `cron_schedule`;

Thanks.  Looking in my database, using phpmyadmin, I don't see that any of those tables exist - except cron_schedule which is huge (1425 rows right now).

 

So now I don't know what I should do to fix this issue.  I'm getting things like:

[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_1"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_2"}} []
dex_store1_4"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_outdated_1"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_outdated_2"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_outdated_3"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_outdated_4"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_replica_1"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_replica_2"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_replica_3"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalog_category_product_index_store1_replica_4"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"tags":["cat_c","FPC"],"mode":"matchingTag"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"tags":["cat_c"],"mode":"matchingAnyTag"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalogrule_product_1"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalogrule_product_2"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalogrule_product_3"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalogrule_product_4"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalogrule_productd0f6e25b_1"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalogrule_productd0f6e25b_2"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_catalogrule_productd0f6e25b_3"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"tags":["cat_c","FPC"],"mode":"matchingTag"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"tags":["cat_p","FPC"],"mode":"matchingTag"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"tags":["BLOCK_HTML","FPC"],"mode":"matchingTag"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"tags":["cat_c","cat_p","BLOCK_HTML"],"mode":"matchingAnyTag"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"tags":["cat_c","FPC"],"mode":"matchingTag"}} []
[2021-03-22 08:00:05] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"tags":["cat_c"],"mode":"matchingAnyTag"}} []
[2021-03-22 08:00:06] main.DEBUG: cache_invalidate:  {"method":"GET","url":"http:/","invalidateInfo":{"identifier":"DB_PDO_MYSQL_DDL_cataloginventory_stock_status_1"}} []

etc

 

Any suggestions you have would be appreciated.

 

Re: debug.log filling up with message about cache invalidation

These messages are normal output for Magento. There's nothing wrong with your installation.

 

The debug log file is only written when your store is in developer mode. For a trading website, you should be in production mode. These messages just mean that you have either cleared cache manually or some other process from cron job is clearing a product cache (e.g. you've updated a product's attributes).

 

Cron job should not be disabled. It is essential for your store to work correctly. Ideally, it will run every minute and your cron schedule table will be constantly updated with new jobs and old jobs gradually cleared out.

Re: debug.log filling up with message about cache invalidation

You are misunderstanding the issue. While in developer mode those messages are spammed filling 2TB of a disk after a few hours of working on the site.

 

Normally they.don't spam like that.