Varnish_Cache - Version 4.2.1

Version Notes

- fixed issue post requests and form keys

Download this release

Release Info

Developer Magento Core Team
Extension Varnish_Cache
Version 4.2.1
Comparing to
See all releases


Code changes from version 4.2.0 to 4.2.1

README_VARNISH_CACHE.txt CHANGED
@@ -382,9 +382,10 @@ placeholders and compile the actual page content on the fly).
382
 
383
  4.4.1 Form Key Handling
384
  -----------------------
385
- As with version CE 1.8 and EE 1.13 Magento introduced form keys. In case you want
386
- to use ESI with a version that uses formkeys you have to make that the vars.vcl file
387
- is in the correct location.
 
388
 
389
  4.4.2 Enterprise Edition Features
390
  ---------------------------------
382
 
383
  4.4.1 Form Key Handling
384
  -----------------------
385
+ As with version CE 1.8 and EE 1.13 Magento introduced form keys in the frontend.
386
+ In case you want to use version that uses form keys you have to make sure ESI is
387
+ turned on in your Varnish configuration (see chapter 3) and that the vars.vcl
388
+ file is in the correct location (typically /etc/varnish/).
389
 
390
  4.4.2 Enterprise Edition Features
391
  ---------------------------------
app/code/community/Phoenix/VarnishCache/Model/Observer.php CHANGED
@@ -384,7 +384,8 @@ class Phoenix_VarnishCache_Model_Observer
384
  public function replaceFormKeys(Varien_Event_Observer $observer)
385
  {
386
  $esiHelper = Mage::helper('varnishcache/esi');
387
- if (!$esiHelper->hasFormKey()) {
 
388
  return false;
389
  }
390
 
384
  public function replaceFormKeys(Varien_Event_Observer $observer)
385
  {
386
  $esiHelper = Mage::helper('varnishcache/esi');
387
+ /* @var $esiHelper Phoenix_VarnishCache_Helper_Esi */
388
+ if (!$esiHelper->hasFormKey() || Mage::app()->getRequest()->isPost()) {
389
  return false;
390
  }
391
 
app/code/community/Phoenix/VarnishCache/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
  <config>
23
  <modules>
24
  <Phoenix_VarnishCache>
25
- <version>4.2.0</version>
26
  </Phoenix_VarnishCache>
27
  </modules>
28
  <global>
22
  <config>
23
  <modules>
24
  <Phoenix_VarnishCache>
25
+ <version>4.2.1</version>
26
  </Phoenix_VarnishCache>
27
  </modules>
28
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Varnish_Cache</name>
4
- <version>4.2.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
@@ -14,11 +14,11 @@
14
  &lt;p&gt;&#xA0;&lt;/p&gt;
15
  &lt;p&gt;&lt;strong&gt;Features:&lt;/strong&gt;&lt;/p&gt;
16
  &lt;p&gt;- Allows &lt;strong&gt;full page caching&lt;/strong&gt; of Magento store frontends with &lt;a href="http://www.varnish-cache.org" target="_blank"&gt;Varnish&lt;/a&gt;&lt;br /&gt;- Prevent caching of pages containing custom information (shopping carts, logins)&lt;br /&gt;- Configure request paths (controller, action) to be excluded from caching&lt;br /&gt;- Clean caches for single store views or content types&lt;br /&gt;- Maintain several Varnish instances&#xA0;from the Magento backend&lt;br /&gt;- Set TTL for content pages per store view&lt;br /&gt;- Deactivate Varnish cache for single store views or websites&lt;br /&gt;- Easily deactivate caching for certain Magento modules&lt;br /&gt;- Enable debug mode to analyse any issues&lt;br /&gt;&lt;strong&gt;- Ready to go Varnish configuration file (VCL)&lt;/strong&gt;&lt;/p&gt;</description>
17
- <notes>- fixed issue with form key in Magento CE &gt; 1.8</notes>
18
  <authors><author><name>PHOENIX MEDIA</name><user>auto-converted</user><email>info@phoenix-media.eu</email></author></authors>
19
- <date>2014-10-09</date>
20
- <time>17:48:31</time>
21
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="varnishcache.xml" hash="c2bf6a7de0a2a12d6d7a66a403b3c639"/></dir><dir name="template"><dir name="varnishcache"><dir name="cache"><file name="additional.phtml" hash="ddf6396dc4fe260bb725d4d173d1e9f2"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="varnishcache.xml" hash="cf08914886988446e81770c5d71c8417"/></dir><dir name="template"><dir name="varnishcache"><dir name="cookie"><file name="environment.phtml" hash="cafdc575223b59575c7cace37e3e596f"/><file name="formkey.phtml" hash="172e0374d8cb62d1e3a494a170a57e34"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Phoenix_VarnishCache.csv" hash="fcd310b9d66d55abe92df78272edefb6"/></dir><dir name="en_US"><file name="Phoenix_VarnishCache.csv" hash="8fcaa3e009cf8ccec3e92b374a78a736"/></dir><dir name="es_ES"><file name="Phoenix_VarnishCache.csv" hash="eeaf2afe930687a4e5cdca5ffa02eb5b"/></dir><dir name="fr_FR"><file name="Phoenix_VarnishCache.csv" hash="f1926328dbd4bae4c23e585b7afb8309"/></dir><dir name="nb_NO"><file name="Phoenix_VarnishCache.csv" hash="077ab381e4eb8a50e638743a8fcf4fe6"/></dir></target><target name="mageetc"><dir name="modules"><file name="Phoenix_VarnishCache.xml" hash="a35642665f4c9ebded9a00ba60e392ce"/></dir><dir name="."><file name="varnishcache.xml" hash="dd2b62cc78ea6a435d78f5d4fa6cbf53"/></dir></target><target name="magecommunity"><dir name="Phoenix"><dir name="VarnishCache"><dir name="Block"><dir name="Adminhtml"><dir name="Cache"><file name="Additional.php" hash="e9d28a5617caa6d986736d42c0ae81dc"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="RouteTTL.php" hash="e8dabcea12ea7057726dd4e5508dbff0"/><file name="Versioninfo.php" hash="3282077fe7dca1ed95857d866ce63fa0"/></dir></dir></dir></dir><dir name="Cookie"><file name="Environment.php" hash="4aad8a94fdf574744af13014051b9db2"/><file name="Formkey.php" hash="29f22774f6d44740266fa593922e633d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="VarnishCacheController.php" hash="8e2a6d16f440e99fc11bf49e8135e893"/></dir></dir><dir name="etc"><file name="config.xml" hash="9e835e7607807ddb965c150321537b49"/><file name="default_3.0.vcl" hash="a6f61f0ee1281c1ec0dfb6b61b96b3eb"/><file name="system.xml" hash="fa845ec5f1d823b8ac5aafb832116e54"/><file name="vars.vcl" hash="37594a5577997fa1bbb2441223bbc6aa"/></dir><dir name="Helper"><dir name="Control"><dir name="Catalog"><file name="Category.php" hash="49d62df775eea6bfe9e33e0e9d2da062"/><file name="Product.php" hash="9eee32f522283dbea1b2a72e7831bcc9"/></dir><dir name="Cms"><file name="Page.php" hash="8f39bcb51d6d7aae90fdd528035606c2"/></dir></dir><file name="Cache.php" hash="f73b798aa402685467b97c97641ea32e"/><file name="Data.php" hash="1fb321ba8bf2623e327a4417a239c1f6"/><file name="Esi.php" hash="f24202f87bcac7644c020919cf3a7ec4"/></dir><dir name="Model"><dir name="Catalog"><dir name="Category"><file name="Product.php" hash="68459ecc0a36861b4cb86e7ba099730b"/></dir><dir name="Product"><file name="Relation.php" hash="4e80a4104e2350f9ce0e0f2548b6ed87"/></dir></dir><dir name="Cms"><dir name="Page"><file name="Store.php" hash="6c8b66dc03eca83676a2032c7003f2f6"/></dir></dir><dir name="Control"><dir name="Catalog"><file name="Category.php" hash="bf1bb95a8c8fcec7b163a0115e16efc1"/><file name="Product.php" hash="bb812000e58b758ed1256cc53dc85e46"/></dir><dir name="Cms"><file name="Page.php" hash="384e2b5f24ac679eddf2fc0a24c8dc5d"/></dir><file name="Abstract.php" hash="a9446d010232337b306f8b1f3d53769f"/></dir><dir name="Resource"><dir name="Mysql4"><dir name="Catalog"><dir name="Category"><dir name="Product"><file name="Collection.php" hash="4145efc91724bef4529fbeadea41023f"/></dir><file name="Product.php" hash="74a15f49018c53fe34df540bdffd8fe6"/></dir><dir name="Product"><dir name="Relation"><file name="Collection.php" hash="423c3463306c369af1ad3f99a6b1f597"/></dir></dir></dir><dir name="Cms"><dir name="Page"><dir name="Store"><file name="Collection.php" hash="829efa7bf0101058bc97710b50a75dce"/></dir><file name="Store.php" hash="e74ddaf82b761d6bbde75fdba21c1301"/></dir></dir><dir name="Core"><dir name="Url"><dir name="Rewrite"><file name="Collection.php" hash="3a72e23edf9baa04880acbe01a6e794c"/></dir></dir></dir></dir></dir><file name="Control.php" hash="c19117df2154154c105a117e0d5b4955"/><file name="Observer.php" hash="b4c0a5415e3328ba414cd3772efc7cdd"/><file name="Processor.php" hash="6a74c8974d1386b8dce0edc3bd4ecdcb"/></dir><dir name="sql"><dir name="varnishcache_setup"><file name="install-4.0.0.php" hash="db69351281e7f74941ad71bfe7e97c14"/></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="README_VARNISH_CACHE.txt" hash="6f2eba62c3931792595cbf078a7855b3"/></dir></target></contents>
22
  <compatible/>
23
  <dependencies/>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Varnish_Cache</name>
4
+ <version>4.2.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
14
  &lt;p&gt;&#xA0;&lt;/p&gt;
15
  &lt;p&gt;&lt;strong&gt;Features:&lt;/strong&gt;&lt;/p&gt;
16
  &lt;p&gt;- Allows &lt;strong&gt;full page caching&lt;/strong&gt; of Magento store frontends with &lt;a href="http://www.varnish-cache.org" target="_blank"&gt;Varnish&lt;/a&gt;&lt;br /&gt;- Prevent caching of pages containing custom information (shopping carts, logins)&lt;br /&gt;- Configure request paths (controller, action) to be excluded from caching&lt;br /&gt;- Clean caches for single store views or content types&lt;br /&gt;- Maintain several Varnish instances&#xA0;from the Magento backend&lt;br /&gt;- Set TTL for content pages per store view&lt;br /&gt;- Deactivate Varnish cache for single store views or websites&lt;br /&gt;- Easily deactivate caching for certain Magento modules&lt;br /&gt;- Enable debug mode to analyse any issues&lt;br /&gt;&lt;strong&gt;- Ready to go Varnish configuration file (VCL)&lt;/strong&gt;&lt;/p&gt;</description>
17
+ <notes>- fixed issue post requests and form keys</notes>
18
  <authors><author><name>PHOENIX MEDIA</name><user>auto-converted</user><email>info@phoenix-media.eu</email></author></authors>
19
+ <date>2014-10-10</date>
20
+ <time>10:12:24</time>
21
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="varnishcache.xml" hash="c2bf6a7de0a2a12d6d7a66a403b3c639"/></dir><dir name="template"><dir name="varnishcache"><dir name="cache"><file name="additional.phtml" hash="ddf6396dc4fe260bb725d4d173d1e9f2"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="varnishcache.xml" hash="cf08914886988446e81770c5d71c8417"/></dir><dir name="template"><dir name="varnishcache"><dir name="cookie"><file name="environment.phtml" hash="cafdc575223b59575c7cace37e3e596f"/><file name="formkey.phtml" hash="172e0374d8cb62d1e3a494a170a57e34"/></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="de_DE"><file name="Phoenix_VarnishCache.csv" hash="fcd310b9d66d55abe92df78272edefb6"/></dir><dir name="en_US"><file name="Phoenix_VarnishCache.csv" hash="8fcaa3e009cf8ccec3e92b374a78a736"/></dir><dir name="es_ES"><file name="Phoenix_VarnishCache.csv" hash="eeaf2afe930687a4e5cdca5ffa02eb5b"/></dir><dir name="fr_FR"><file name="Phoenix_VarnishCache.csv" hash="f1926328dbd4bae4c23e585b7afb8309"/></dir><dir name="nb_NO"><file name="Phoenix_VarnishCache.csv" hash="077ab381e4eb8a50e638743a8fcf4fe6"/></dir></target><target name="mageetc"><dir name="modules"><file name="Phoenix_VarnishCache.xml" hash="a35642665f4c9ebded9a00ba60e392ce"/></dir><dir name="."><file name="varnishcache.xml" hash="dd2b62cc78ea6a435d78f5d4fa6cbf53"/></dir></target><target name="magecommunity"><dir name="Phoenix"><dir name="VarnishCache"><dir name="Block"><dir name="Adminhtml"><dir name="Cache"><file name="Additional.php" hash="e9d28a5617caa6d986736d42c0ae81dc"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="RouteTTL.php" hash="e8dabcea12ea7057726dd4e5508dbff0"/><file name="Versioninfo.php" hash="3282077fe7dca1ed95857d866ce63fa0"/></dir></dir></dir></dir><dir name="Cookie"><file name="Environment.php" hash="4aad8a94fdf574744af13014051b9db2"/><file name="Formkey.php" hash="29f22774f6d44740266fa593922e633d"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="VarnishCacheController.php" hash="8e2a6d16f440e99fc11bf49e8135e893"/></dir></dir><dir name="etc"><file name="config.xml" hash="491367edb51506cbb469171370269895"/><file name="default_3.0.vcl" hash="a6f61f0ee1281c1ec0dfb6b61b96b3eb"/><file name="system.xml" hash="fa845ec5f1d823b8ac5aafb832116e54"/><file name="vars.vcl" hash="37594a5577997fa1bbb2441223bbc6aa"/></dir><dir name="Helper"><dir name="Control"><dir name="Catalog"><file name="Category.php" hash="49d62df775eea6bfe9e33e0e9d2da062"/><file name="Product.php" hash="9eee32f522283dbea1b2a72e7831bcc9"/></dir><dir name="Cms"><file name="Page.php" hash="8f39bcb51d6d7aae90fdd528035606c2"/></dir></dir><file name="Cache.php" hash="f73b798aa402685467b97c97641ea32e"/><file name="Data.php" hash="1fb321ba8bf2623e327a4417a239c1f6"/><file name="Esi.php" hash="f24202f87bcac7644c020919cf3a7ec4"/></dir><dir name="Model"><dir name="Catalog"><dir name="Category"><file name="Product.php" hash="68459ecc0a36861b4cb86e7ba099730b"/></dir><dir name="Product"><file name="Relation.php" hash="4e80a4104e2350f9ce0e0f2548b6ed87"/></dir></dir><dir name="Cms"><dir name="Page"><file name="Store.php" hash="6c8b66dc03eca83676a2032c7003f2f6"/></dir></dir><dir name="Control"><dir name="Catalog"><file name="Category.php" hash="bf1bb95a8c8fcec7b163a0115e16efc1"/><file name="Product.php" hash="bb812000e58b758ed1256cc53dc85e46"/></dir><dir name="Cms"><file name="Page.php" hash="384e2b5f24ac679eddf2fc0a24c8dc5d"/></dir><file name="Abstract.php" hash="a9446d010232337b306f8b1f3d53769f"/></dir><dir name="Resource"><dir name="Mysql4"><dir name="Catalog"><dir name="Category"><dir name="Product"><file name="Collection.php" hash="4145efc91724bef4529fbeadea41023f"/></dir><file name="Product.php" hash="74a15f49018c53fe34df540bdffd8fe6"/></dir><dir name="Product"><dir name="Relation"><file name="Collection.php" hash="423c3463306c369af1ad3f99a6b1f597"/></dir></dir></dir><dir name="Cms"><dir name="Page"><dir name="Store"><file name="Collection.php" hash="829efa7bf0101058bc97710b50a75dce"/></dir><file name="Store.php" hash="e74ddaf82b761d6bbde75fdba21c1301"/></dir></dir><dir name="Core"><dir name="Url"><dir name="Rewrite"><file name="Collection.php" hash="3a72e23edf9baa04880acbe01a6e794c"/></dir></dir></dir></dir></dir><file name="Control.php" hash="c19117df2154154c105a117e0d5b4955"/><file name="Observer.php" hash="3a726e5f699f7c070d78f5e29c644a70"/><file name="Processor.php" hash="6a74c8974d1386b8dce0edc3bd4ecdcb"/></dir><dir name="sql"><dir name="varnishcache_setup"><file name="install-4.0.0.php" hash="db69351281e7f74941ad71bfe7e97c14"/></dir></dir></dir></dir></target><target name="mage"><dir name="."><file name="README_VARNISH_CACHE.txt" hash="17b9ebef86f14094e011392230091613"/></dir></target></contents>
22
  <compatible/>
23
  <dependencies/>
24
  </package>