php – The maximum execution time of 300 seconds exceeded the error

When I delete products, I get this error.

Fatal error: Maximum execution time of 300 seconds exceeded in
/magento_1.8.1/www/lib/Zend/Cache/Backend/File.php on line 655

The configuration values ​​of the php and .htaccess server are 1800

cat /php/lib/php.ini | grep max_execution_time

max_execution_time = 1800

cat /magento_1.8.1/www/.htaccess|grep max_execution_time

php_value max_execution_time 1800

What should I check?

PHP 7.0.16, Magento 1.8.1

Thank you!