Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 8d746f6

Browse files
author
stevjohnson
committed
Update file system cache and multiple webnodes
1 parent 6eae7bf commit 8d746f6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

guides/v2.0/config-guide/redis/config-redis.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ This topic discusses how to configure Redis to serve as the following Magento ca
2323
* The page cache (that is, full page cache).
2424
* The default cache, which stores: configuration, layout configuration, block HTML output, collections data, reflection data, database DDL operations, EAV types and attributes, translations, web services configuration, and integration API.
2525

26+
<div class="bs-callout bs-callout-info" id="info">
27+
<span class="glyphicon-class">
28+
<p>You <em>must</em> use Redis for caching if you have multiple Magento webnodes. The file system cache is inefficient and can result in errors.</p></span>
29+
</div>
30+
2631

2732
### Issues with `Zend_Cache_Backend_File`
2833
* The `core_cache_tag` table constantly grows. If a Magento instance has multiple web sites and web stores with large catalogs, the table can grow to 15 million records in less than a day. Insertion into `core_cache_tag` leads to issues with MySQL server, including performance degradation.

guides/v2.0/install-gde/install/post-install-config.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Now that you've finished installing the Magento application, you need to configu
1616
* <a href="#post-install-cron">Set up cron</a>
1717
* <a href="#post-install-secy">Security settings</a>
1818
* <a href="#post-install-rewrites">Enable Apache server rewrites</a>
19+
* [Caching in a multi-webnode environment](#config-redis)
1920
* <a href="#post-install-server">Server settings</a>
2021
* <a href="#post-install-ee">Settings for Magento Enterprise Edition (EE) only</a>
2122

@@ -40,6 +41,11 @@ If you use the Apache web server, you must enable server rewrites for pages to d
4041

4142
<a href="{{ site.gdeurl }}install-gde/prereq/apache.html#apache-help-rewrite">Section on Apache server rewrites</a>
4243

44+
## Caching in a multi-webnode environment {#config-redis}
45+
If you have multiple webnodes, you *cannot* use Magento's default file caching because there is no synchronization between webnodes. In other words, activity on one webnode is written to that webnode's file system only. Subsequent activity, if performed on another webnode, can result in unnecessary files being written or can result in errors.
46+
47+
Instead, use [Redis]({{ site.gdeurl }}config-guide/redis/config-redis.html) for both the default cache and the page cache.
48+
4349
<h2 id="post-install-server">Server settings</h2>
4450
This section briefly discusses settings we recommend you consider for the server on which Magento runs. Some of these settings are not directly related to Magento; these are provided as suggestions only.
4551

0 commit comments

Comments
 (0)