Made_Cache - Version 1.4.6

Version Notes

N/A

Download this release

Release Info

Developer Jonathan Selander
Extension Made_Cache
Version 1.4.6
Comparing to
See all releases


Code changes from version 1.4.5 to 1.4.6

app/code/community/Made/Cache/etc/config.xml CHANGED
@@ -9,7 +9,7 @@
9
  <config>
10
  <modules>
11
  <Made_Cache>
12
- <version>1.4.5</version>
13
  </Made_Cache>
14
  </modules>
15
  <global>
9
  <config>
10
  <modules>
11
  <Made_Cache>
12
+ <version>1.4.6</version>
13
  </Made_Cache>
14
  </modules>
15
  <global>
app/code/community/Made/Cache/etc/magento.vcl CHANGED
@@ -77,25 +77,27 @@ sub vcl_recv {
77
  if (req.http.Cookie ~ "frontend=") {
78
  set req.http.X-Session-UUID =
79
  regsub(req.http.Cookie, ".*frontend=([^;]+).*", "\1");
80
- }
81
 
82
- # This is where we have to check for session validity. Needs the curl vmod
83
- # to be installed and imported at the top of this file. If the session is
84
- # invalid we pass the user to the backend. Your CouchDB URL has to be
85
- # defined manually here, in the form:
86
- #
87
- # http://couchdb.url.or.ip:port/magento_session/_design/misc/_show/is_session_valid/SESSION_ID_FROM_REQUEST
88
- #
89
- # The following show function needs to be defined in CouchDB as well:
90
- #
91
- # https://gist.github.com/jonathanselander/1c71f413911116ecba11
92
- #
93
- #curl.fetch("http://127.0.0.1:5984/magento_session/_design/misc/_show/is_session_valid/" + req.http.X-Session-UUID);
94
- #if (curl.body() != "true") {
95
- # curl.free();
96
- # return(pass);
97
- #}
98
- #curl.free();
 
 
 
99
 
100
  # Pass anything other than GET and HEAD directly.
101
  if (req.request != "GET" && req.request != "HEAD") {
77
  if (req.http.Cookie ~ "frontend=") {
78
  set req.http.X-Session-UUID =
79
  regsub(req.http.Cookie, ".*frontend=([^;]+).*", "\1");
 
80
 
81
+ # This is where we have to check for session validity. Needs the curl vmod
82
+ # to be installed and imported at the top of this file. If the session is
83
+ # invalid we pass the user to the backend. Your CouchDB URL has to be
84
+ # defined manually here, in the form:
85
+ #
86
+ # http://couchdb.url.or.ip:port/magento_session/_design/misc/_show/is_session_valid/SESSION_ID_FROM_REQUEST
87
+ #
88
+ # The following show function needs to be defined in CouchDB as well:
89
+ #
90
+ # https://gist.github.com/jonathanselander/1c71f413911116ecba11
91
+ #
92
+ #if (!(req.url ~ "\.(css|js|jpg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|swf|flv)$")) {
93
+ # curl.fetch("http://127.0.0.1:5984/magento_session/_design/misc/_show/is_session_valid/" + req.http.X-Session-UUID);
94
+ # if (curl.body() != "true") {
95
+ # curl.free();
96
+ # return(pass);
97
+ # }
98
+ # curl.free();
99
+ #}
100
+ }
101
 
102
  # Pass anything other than GET and HEAD directly.
103
  if (req.request != "GET" && req.request != "HEAD") {
app/design/frontend/base/default/layout/madecache.xml CHANGED
@@ -20,12 +20,9 @@
20
  <name>product_list</name>
21
 
22
  <!--
23
- Cache the cart sidebar with a 7200 second lifetime. Also
24
- force the cache key to be "cart_sidebar", since the cart
25
- should always render the same regardless of layout, URL
26
- etc. If this isn't true in your case, remove it!
27
  -->
28
- <name lifetime="7200" key="cart_sidebar">cart_sidebar</name>
29
 
30
  <!--
31
  People want to cache this one, but it works badly if you use
@@ -83,6 +80,8 @@
83
  "content" block
84
  -->
85
  <reference name="content">
 
 
86
  <block type="cache/varnish_footer" name="varnish_cache_footer" after="-"/>
87
  </reference>
88
  </varnish_enabled>
20
  <name>product_list</name>
21
 
22
  <!--
23
+ Cache the cart sidebar with a 7200 second lifetime.
 
 
 
24
  -->
25
+ <name lifetime="7200">cart_sidebar</name>
26
 
27
  <!--
28
  People want to cache this one, but it works badly if you use
80
  "content" block
81
  -->
82
  <reference name="content">
83
+ <!-- Comment this out if you're using CouchDB sessions and
84
+ validation inside your Varnish VCL -->
85
  <block type="cache/varnish_footer" name="varnish_cache_footer" after="-"/>
86
  </reference>
87
  </varnish_enabled>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Made_Cache</name>
4
- <version>1.4.5</version>
5
  <stability>stable</stability>
6
  <license>4-clause BSD License</license>
7
  <channel>community</channel>
@@ -19,8 +19,8 @@ A good block cache is vital for scaling a site, be sure to implement it before r
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>2013-10-06</date>
22
- <time>10:45:44</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="dade25416d387bac91900e1104cc34d1"/></dir><file name="List.php" hash="9088631b67b82bec56230659bf208b4a"/></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="1f2d12e8ace4daf36471704c899063ac"/></dir><dir name="Model"><file name="Layout.php" hash="b6f87785635a108884cd42147e5a2212"/><dir name="Observer"><file name="Abstract.php" hash="1d440b111ce0632a55ced2d5d48c6921"/><file name="Catalog.php" hash="468854697cbc082f390a00c80666c14d"/><file name="Checkout.php" hash="b4e2e2079b497960083f6d77ada268da"/><file name="Cms.php" hash="bccdb30163fe823d622d4f26edd61974"/></dir><file name="Observer.php" hash="ed544946e9842f1ffaed144b96a82274"/><file name="Profiler.php" hash="888d3e38e212d872a4420a3556ca4b08"/><file name="VarnishObserver.php" hash="945d41d8bf3aa4bd814660c7471ebf07"/></dir><dir name="controllers"><file name="VarnishController.php" hash="4c73b9c5b91679120a649432459759c9"/></dir><dir name="etc"><file name="config.xml" hash="25ca587aea908a12cdce0b51e95ad452"/><file name="magento.vcl" hash="c9abbe58020550890de31423b7ed08ff"/><file name="system.xml" hash="ce4148b8c255e877acc7f0f394d4caa5"/></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="fa9ab44e1d413d0969ba31f731ba3987"/></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>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Made_Cache</name>
4
+ <version>1.4.6</version>
5
  <stability>stable</stability>
6
  <license>4-clause BSD License</license>
7
  <channel>community</channel>
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>2013-10-06</date>
22
+ <time>18:19:44</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="dade25416d387bac91900e1104cc34d1"/></dir><file name="List.php" hash="9088631b67b82bec56230659bf208b4a"/></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="1f2d12e8ace4daf36471704c899063ac"/></dir><dir name="Model"><file name="Layout.php" hash="b6f87785635a108884cd42147e5a2212"/><dir name="Observer"><file name="Abstract.php" hash="1d440b111ce0632a55ced2d5d48c6921"/><file name="Catalog.php" hash="468854697cbc082f390a00c80666c14d"/><file name="Checkout.php" hash="b4e2e2079b497960083f6d77ada268da"/><file name="Cms.php" hash="bccdb30163fe823d622d4f26edd61974"/></dir><file name="Observer.php" hash="ed544946e9842f1ffaed144b96a82274"/><file name="Profiler.php" hash="888d3e38e212d872a4420a3556ca4b08"/><file name="VarnishObserver.php" hash="945d41d8bf3aa4bd814660c7471ebf07"/></dir><dir name="controllers"><file name="VarnishController.php" hash="4c73b9c5b91679120a649432459759c9"/></dir><dir name="etc"><file name="config.xml" hash="60c2fb8c04a40110824d66cf35398697"/><file name="magento.vcl" hash="8c78c9e79f44e863adf398b63733d00c"/><file name="system.xml" hash="ce4148b8c255e877acc7f0f394d4caa5"/></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="b996cc4ce8b59ef0f4ee4cc2dcb43049"/></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>