Version Notes
N/A
Download this release
Release Info
Developer | Jonathan Selander |
Extension | Made_Cache |
Version | 1.1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.1.2
app/code/community/Made/Cache/Model/Observer/Catalog.php
CHANGED
@@ -18,7 +18,7 @@ class Made_Cache_Model_Observer_Catalog
|
|
18 |
{
|
19 |
// The "messages" block is session-dependent, don't cache
|
20 |
if (($messagesBlock = $block->getLayout()->getBlock('messages')) !== null) {
|
21 |
-
if (
|
22 |
$block->setData('cache_lifetime', null);
|
23 |
return;
|
24 |
}
|
@@ -81,7 +81,7 @@ class Made_Cache_Model_Observer_Catalog
|
|
81 |
{
|
82 |
// The "messages" block is session-dependent, don't cache
|
83 |
if (($messagesBlock = $block->getLayout()->getBlock('messages')) !== null) {
|
84 |
-
if (
|
85 |
$block->setData('cache_lifetime', null);
|
86 |
return;
|
87 |
}
|
18 |
{
|
19 |
// The "messages" block is session-dependent, don't cache
|
20 |
if (($messagesBlock = $block->getLayout()->getBlock('messages')) !== null) {
|
21 |
+
if ($messagesBlock->getMessageCollection()->count()) {
|
22 |
$block->setData('cache_lifetime', null);
|
23 |
return;
|
24 |
}
|
81 |
{
|
82 |
// The "messages" block is session-dependent, don't cache
|
83 |
if (($messagesBlock = $block->getLayout()->getBlock('messages')) !== null) {
|
84 |
+
if ($messagesBlock->getMessageCollection()->count()) {
|
85 |
$block->setData('cache_lifetime', null);
|
86 |
return;
|
87 |
}
|
app/code/community/Made/Cache/Model/Observer/Cms.php
CHANGED
@@ -18,7 +18,7 @@ class Made_Cache_Model_Observer_Cms
|
|
18 |
{
|
19 |
// The "messages" block is session-dependent, don't cache
|
20 |
if (($messagesBlock = $block->getLayout()->getBlock('messages')) !== null) {
|
21 |
-
if (
|
22 |
$block->setData('cache_lifetime', null);
|
23 |
return;
|
24 |
}
|
@@ -47,7 +47,7 @@ class Made_Cache_Model_Observer_Cms
|
|
47 |
{
|
48 |
// The "messages" block is session-dependent, don't cache
|
49 |
if (($messagesBlock = $block->getLayout()->getBlock('messages')) !== null) {
|
50 |
-
if (
|
51 |
$block->setData('cache_lifetime', null);
|
52 |
return;
|
53 |
}
|
18 |
{
|
19 |
// The "messages" block is session-dependent, don't cache
|
20 |
if (($messagesBlock = $block->getLayout()->getBlock('messages')) !== null) {
|
21 |
+
if ($messagesBlock->getMessageCollection()->count()) {
|
22 |
$block->setData('cache_lifetime', null);
|
23 |
return;
|
24 |
}
|
47 |
{
|
48 |
// The "messages" block is session-dependent, don't cache
|
49 |
if (($messagesBlock = $block->getLayout()->getBlock('messages')) !== null) {
|
50 |
+
if ($messagesBlock->getMessageCollection()->count()) {
|
51 |
$block->setData('cache_lifetime', null);
|
52 |
return;
|
53 |
}
|
app/code/community/Made/Cache/etc/config.xml
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
<config>
|
10 |
<modules>
|
11 |
<Made_Cache>
|
12 |
-
<version>1.1.
|
13 |
</Made_Cache>
|
14 |
</modules>
|
15 |
<global>
|
9 |
<config>
|
10 |
<modules>
|
11 |
<Made_Cache>
|
12 |
+
<version>1.1.2</version>
|
13 |
</Made_Cache>
|
14 |
</modules>
|
15 |
<global>
|
app/design/frontend/base/default/layout/madecache.xml
CHANGED
@@ -14,6 +14,7 @@
|
|
14 |
9999999999 seconds
|
15 |
-->
|
16 |
<name lifetime="86400">left</name>
|
|
|
17 |
<name>head</name>
|
18 |
<name>breadcrumbs</name>
|
19 |
<name>before_body_end</name>
|
14 |
9999999999 seconds
|
15 |
-->
|
16 |
<name lifetime="86400">left</name>
|
17 |
+
<name>cms_page</name>
|
18 |
<name>head</name>
|
19 |
<name>breadcrumbs</name>
|
20 |
<name>before_body_end</name>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Made_Cache</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL 3.0</license>
|
7 |
<channel>community</channel>
|
@@ -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-
|
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="06ab53286ff19e5cf057b6f3da90088f"/></dir></dir></dir><dir name="Model"><file name="Layout.php" hash="a9de02e5a6bf7b7f91434998f5d53c40"/><dir name="Observer"><file name="Abstract.php" hash="e8e501179fdbca2596b4d8b5291ec95c"/><file name="Catalog.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.1.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL 3.0</license>
|
7 |
<channel>community</channel>
|
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-06-03</date>
|
22 |
+
<time>19:11:24</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="06ab53286ff19e5cf057b6f3da90088f"/></dir></dir></dir><dir name="Model"><file name="Layout.php" hash="a9de02e5a6bf7b7f91434998f5d53c40"/><dir name="Observer"><file name="Abstract.php" hash="e8e501179fdbca2596b4d8b5291ec95c"/><file name="Catalog.php" hash="400213a265ce42ce439848ab28f5479a"/><file name="Checkout.php" hash="4c1361159d91da2452c1d50e1fc52505"/><file name="Cms.php" hash="2136c1b1cdfeef96a1ec4c486160ddb4"/></dir><file name="Observer.php" hash="ae71a2dd08b385bae7549ed235b2a528"/></dir><dir name="controllers"><file name="VarnishController.php" hash="6ae7446eef83e106c56b0f05711c3ffa"/></dir><dir name="etc"><file name="config.xml" hash="a536b882ea4ea864c0a38975641c6108"/><file name="magento.vcl" hash="dd4f36661f4da1563fb383aa23e872d1"/></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="88f2ec1fcdbfc56b99fa6f8987ac8545"/></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>
|