Version Notes
N/A
Download this release
Release Info
Developer | Jonathan Selander |
Extension | Made_Cache |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
app/code/community/Made/Cache/Helper/Varnish.php
CHANGED
@@ -215,6 +215,11 @@ class Made_Cache_Helper_Varnish extends Mage_Core_Helper_Abstract
|
|
215 |
return null;
|
216 |
}
|
217 |
|
|
|
|
|
|
|
|
|
|
|
218 |
return Mage::getStoreConfig('cache/varnish/ttl');
|
219 |
}
|
220 |
|
215 |
return null;
|
216 |
}
|
217 |
|
218 |
+
if ($this->_matchRoutesAgainstRequest('madecache/varnish/esi', $request)) {
|
219 |
+
// All ESI requests should have the same TTL as the session itself
|
220 |
+
return intval(Mage::getStoreConfig('web/cookie/cookie_lifetime')) . 's';
|
221 |
+
}
|
222 |
+
|
223 |
return Mage::getStoreConfig('cache/varnish/ttl');
|
224 |
}
|
225 |
|
app/code/community/Made/Cache/Model/VarnishObserver.php
CHANGED
@@ -68,7 +68,7 @@ class Made_Cache_Model_VarnishObserver
|
|
68 |
return;
|
69 |
}
|
70 |
|
71 |
-
$observer->getEvent()
|
72 |
->getLayout()
|
73 |
->getUpdate()
|
74 |
->addHandle('varnish_enabled');
|
68 |
return;
|
69 |
}
|
70 |
|
71 |
+
$observer->getEvent()
|
72 |
->getLayout()
|
73 |
->getUpdate()
|
74 |
->addHandle('varnish_enabled');
|
app/code/community/Made/Cache/etc/config.xml
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
<config>
|
10 |
<modules>
|
11 |
<Made_Cache>
|
12 |
-
<version>1.4.
|
13 |
</Made_Cache>
|
14 |
</modules>
|
15 |
<global>
|
@@ -141,7 +141,7 @@
|
|
141 |
</modules>
|
142 |
</translate>
|
143 |
<events>
|
144 |
-
<
|
145 |
<observers>
|
146 |
<add_layout_handle>
|
147 |
<type>singleton</type>
|
@@ -149,7 +149,7 @@
|
|
149 |
<method>addLayoutHandle</method>
|
150 |
</add_layout_handle>
|
151 |
</observers>
|
152 |
-
</
|
153 |
<controller_action_predispatch>
|
154 |
<observers>
|
155 |
<clear_cache_headers>
|
@@ -242,4 +242,4 @@ paypal]]>
|
|
242 |
</varnish>
|
243 |
</cache>
|
244 |
</default>
|
245 |
-
</config>
|
9 |
<config>
|
10 |
<modules>
|
11 |
<Made_Cache>
|
12 |
+
<version>1.4.2</version>
|
13 |
</Made_Cache>
|
14 |
</modules>
|
15 |
<global>
|
141 |
</modules>
|
142 |
</translate>
|
143 |
<events>
|
144 |
+
<controller_action_layout_load_before>
|
145 |
<observers>
|
146 |
<add_layout_handle>
|
147 |
<type>singleton</type>
|
149 |
<method>addLayoutHandle</method>
|
150 |
</add_layout_handle>
|
151 |
</observers>
|
152 |
+
</controller_action_layout_load_before>
|
153 |
<controller_action_predispatch>
|
154 |
<observers>
|
155 |
<clear_cache_headers>
|
242 |
</varnish>
|
243 |
</cache>
|
244 |
</default>
|
245 |
+
</config>
|
app/design/frontend/base/default/layout/madecache.xml
CHANGED
@@ -30,7 +30,7 @@
|
|
30 |
</cache>
|
31 |
|
32 |
<!-- Inject profiler block into the bottom of the layout -->
|
33 |
-
<reference name="
|
34 |
<!-- This block can't be used with varnish cache enabled -->
|
35 |
<block type="cache/profiler" name="cache_profiler" output="toHtml" ifconfig="cache/general/enable_profiler"/>
|
36 |
</reference>
|
@@ -72,8 +72,13 @@
|
|
72 |
<remove name="right.reports.product.viewed"/>
|
73 |
<remove name="left.reports.product.viewed"/>
|
74 |
|
75 |
-
|
76 |
-
|
|
|
|
|
|
|
|
|
|
|
77 |
</reference>
|
78 |
</varnish_enabled>
|
79 |
|
30 |
</cache>
|
31 |
|
32 |
<!-- Inject profiler block into the bottom of the layout -->
|
33 |
+
<reference name="before_body_end">
|
34 |
<!-- This block can't be used with varnish cache enabled -->
|
35 |
<block type="cache/profiler" name="cache_profiler" output="toHtml" ifconfig="cache/general/enable_profiler"/>
|
36 |
</reference>
|
72 |
<remove name="right.reports.product.viewed"/>
|
73 |
<remove name="left.reports.product.viewed"/>
|
74 |
|
75 |
+
<!--
|
76 |
+
The lazy session validation block must be added at the end to not
|
77 |
+
block the page rendering. People generally don't remove the
|
78 |
+
"content" block
|
79 |
+
-->
|
80 |
+
<reference name="content">
|
81 |
+
<block type="cache/varnish_footer" name="varnish_cache_footer" after="-"/>
|
82 |
</reference>
|
83 |
</varnish_enabled>
|
84 |
|
package.xml
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Made_Cache</name>
|
4 |
-
<version>1.4.
|
5 |
<stability>stable</stability>
|
6 |
-
<license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Advanced non-intrusive Block Cache module that enhances performance by implementing arbitrary block cache with support for Varnish ESI tags.</summary>
|
@@ -18,9 +18,9 @@ ESI is supported in conjunction with Phoenix_VarnishCache, and allows for super-
|
|
18 |
A good block cache is vital for scaling a site, be sure to implement it before residing to full page cache.</description>
|
19 |
<notes>N/A</notes>
|
20 |
<authors><author><name>Jonathan Selander</name><user>jonathan_made</user><email>info@madepeople.se</email></author></authors>
|
21 |
-
<date>2012-11-
|
22 |
-
<time>
|
23 |
-
<contents><target name="magecommunity"><dir name="Made"><dir name="Cache"><dir name="Block"><dir name="Catalog"><dir name="Product"><dir name="List"><file name="Product.php" hash="6356fde9c5acf5f0a96851e780a691b1"/></dir><file name="List.php" hash="bb1e30501c95e83901de75bcb780d072"/></dir></dir><file name="Messages.php" hash="6d7eaed6a93c0deb6037ea36e88ec62f"/><file name="Profiler.php" hash="7d1fd856f08a1900b15a72ae46eb143d"/><dir name="Varnish"><file name="Footer.php" hash="4da9584f4cf4b70149b5c48f9657f668"/></dir></dir><dir name="Helper"><file name="Data.php" hash="6ea193010f6bf79c0c92f06d15e8d73b"/><file name="Varnish.php" hash="
|
24 |
<compatible/>
|
25 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
26 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Made_Cache</name>
|
4 |
+
<version>1.4.2</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license>4-clause BSD License</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Advanced non-intrusive Block Cache module that enhances performance by implementing arbitrary block cache with support for Varnish ESI tags.</summary>
|
18 |
A good block cache is vital for scaling a site, be sure to implement it before residing to full page cache.</description>
|
19 |
<notes>N/A</notes>
|
20 |
<authors><author><name>Jonathan Selander</name><user>jonathan_made</user><email>info@madepeople.se</email></author></authors>
|
21 |
+
<date>2012-11-22</date>
|
22 |
+
<time>18:14:36</time>
|
23 |
+
<contents><target name="magecommunity"><dir name="Made"><dir name="Cache"><dir name="Block"><dir name="Catalog"><dir name="Product"><dir name="List"><file name="Product.php" hash="6356fde9c5acf5f0a96851e780a691b1"/></dir><file name="List.php" hash="bb1e30501c95e83901de75bcb780d072"/></dir></dir><file name="Messages.php" hash="6d7eaed6a93c0deb6037ea36e88ec62f"/><file name="Profiler.php" hash="7d1fd856f08a1900b15a72ae46eb143d"/><dir name="Varnish"><file name="Footer.php" hash="4da9584f4cf4b70149b5c48f9657f668"/></dir></dir><dir name="Helper"><file name="Data.php" hash="6ea193010f6bf79c0c92f06d15e8d73b"/><file name="Varnish.php" hash="5a96d2731d02dc8b7e311b6fd9e276f7"/></dir><dir name="Model"><file name="Layout.php" hash="d77634d026ebc8e228d3c80b7c5caff7"/><dir name="Observer"><file name="Abstract.php" hash="e9f870d8766e1b2e5c6c091052565731"/><file name="Catalog.php" hash="39e069dd45ef75d2ab5b00c708181567"/><file name="Checkout.php" hash="4f6cc6aa7b2466976cad6c25f6a466e5"/><file name="Cms.php" hash="7bac2c6d57d3ff85d397c7cc1867c323"/></dir><file name="Observer.php" hash="8e641fbc376853a6237e0271288b0e4a"/><file name="Profiler.php" hash="888d3e38e212d872a4420a3556ca4b08"/><file name="VarnishObserver.php" hash="05001405131288db87b2abbe70a780b0"/></dir><dir name="controllers"><file name="VarnishController.php" hash="507120591d2e0ad6b33e7816f2c654cd"/></dir><dir name="etc"><file name="config.xml" hash="4ebff803771d6609ac0574aaa864bf59"/><file name="magento.vcl" hash="a247cd54d96f824bacacda6704ad5285"/><file name="system.xml" hash="4ffc1ded6a50a61aeaf932c5a3556a28"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Made_Cache.xml" hash="4cf53cc9b4e525eb560f7fe1278d96bd"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="madecache.xml" hash="7651f67cbe8ee0cd36519684ac74e68f"/></dir></dir></dir></dir></target></contents>
|
24 |
<compatible/>
|
25 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
26 |
</package>
|