Consejos para el desarrollo Web, estrategias de marketing y novedades de A2 Hosting enviadas a su email.
This article describes how to optimize log settings for Magento.
Magento databases can grow very large for a variety of reasons, such as when a store has a lot of products. One of the most common causes of large databases and performance issues, however, is Magento's logging feature. Magento logs several items, such as customer and quote information, in the database. Over time, these logs can grow very large, affecting database performance.
By optimizing Magento's log settings and cleaning the database log tables, you can significantly reduce database sizes and improve site performance. To optimize log settings, you use Magento's administration interface. Magento also includes a PHP script that you can run from the command line to clean database log tables and view how large they are.
To optimize log settings for your Magento store, follow these steps:
Magento includes a PHP script that you can run from the command line to view the status of Magento's logs, as well as clean them manually. To do this, follow these steps:
To view the size of each log table in the database, type the following command:
php -f log.php status
To clean the log tables, type the following command. Replace X with the number of days that you want to save in the log tables:
php -f log.php clean --days X
For example, if you type php -f log.php clean—days 10, Magento keeps the last 10 days' worth of log information in the database and deletes the rest.
For more information about Magento, please visit http://magento.com.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Usamos cookies con el fin de personalizar para usted nuestro sitio Web y analizar el uso de éste. Usted acepta esto haciendo clic en “Acepto” o al continuar usando el sitio Web. Hay más información sobre cookies en nuestra política de privacidad.