PHP code example of samjuk / m2-module-cache-debounce

1. Go to this page and download the library: Download samjuk/m2-module-cache-debounce library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

samjuk / m2-module-cache-debounce example snippets

sh
php bin/magento config:set <path> <value>
sh
php bin/magento setup:config:set --enable-debug-logging=true && php bin/magento cache:flush
diff
--- vendor/magento/framework/Cache/InvalidateLogger.php
+++ vendor/magento/framework/Cache/InvalidateLogger.php
@@ -43,7 +43,7 @@
      */
     public function execute($invalidateInfo)
     {
-        $this->logger->debug('cache_invalidate: ', $this->makeParams($invalidateInfo));
+        $this->logger->info('cache_invalidate: ', $this->makeParams($invalidateInfo));
     }

     /**