Version Notes
- Adds WSDL cache flush button in cache management admin page
Download this release
Release Info
| Developer | Anton Evers |
| Extension | BoiledEgg_WsdlCacheFlush |
| Version | 1.0.0 |
| Comparing to | |
| See all releases | |
Version 1.0.0
- app/code/community/BoiledEgg/WsdlCacheFlush/Block/Flush.php +8 -0
- app/code/community/BoiledEgg/WsdlCacheFlush/controllers/FlushController.php +13 -0
- app/code/community/BoiledEgg/WsdlCacheFlush/etc/config.xml +46 -0
- app/design/adminhtml/default/default/layout/wsdlcacheflush.xml +8 -0
- app/design/adminhtml/default/default/template/wsdlcacheflush/flush.phtml +10 -0
- app/etc/modules/BoiledEgg_WsdlCacheFlush.xml +9 -0
- package.xml +18 -0
app/code/community/BoiledEgg/WsdlCacheFlush/Block/Flush.php
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
class BoiledEgg_WsdlCacheFlush_Block_Flush extends Mage_Adminhtml_Block_Template
|
| 3 |
+
{
|
| 4 |
+
public function getFlushWsdlCacheUrl()
|
| 5 |
+
{
|
| 6 |
+
return Mage::helper('adminhtml')->getUrl('wsdlcache/flush/index');
|
| 7 |
+
}
|
| 8 |
+
}
|
app/code/community/BoiledEgg/WsdlCacheFlush/controllers/FlushController.php
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
|
| 3 |
+
class BoiledEgg_WsdlCacheFlush_FlushController extends Mage_Adminhtml_Controller_Action
|
| 4 |
+
{
|
| 5 |
+
public function indexAction()
|
| 6 |
+
{
|
| 7 |
+
foreach (glob(ini_get('soap.wsdl_cache_dir') . DS . "wsdl-*") as $filename) {
|
| 8 |
+
@unlink($filename);
|
| 9 |
+
}
|
| 10 |
+
Mage::getSingleton('adminhtml/session')->addSuccess('WSDL cache flushed');
|
| 11 |
+
return $this->_redirect('adminhtml/cache/index');
|
| 12 |
+
}
|
| 13 |
+
}
|
app/code/community/BoiledEgg/WsdlCacheFlush/etc/config.xml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<BoiledEgg_WsdlCacheFlush>
|
| 5 |
+
<version>1.0.0</version>
|
| 6 |
+
</BoiledEgg_WsdlCacheFlush>
|
| 7 |
+
</modules>
|
| 8 |
+
<global>
|
| 9 |
+
<models>
|
| 10 |
+
<boiledegg_wsdlcacheflush>
|
| 11 |
+
<class>BoiledEgg_WsdlCacheFlush_Model</class>
|
| 12 |
+
<resourceModel>boiledegg_wsdlcacheflush_resource</resourceModel>
|
| 13 |
+
</boiledegg_wsdlcacheflush>
|
| 14 |
+
<boiledegg_wsdlcacheflush_resource>
|
| 15 |
+
<class>BoiledEgg_WsdlCacheFlush_Model_Resource</class>
|
| 16 |
+
</boiledegg_wsdlcacheflush_resource>
|
| 17 |
+
</models>
|
| 18 |
+
<blocks>
|
| 19 |
+
<boiledegg_wsdlcacheflush>
|
| 20 |
+
<class>BoiledEgg_WsdlCacheFlush_Block</class>
|
| 21 |
+
</boiledegg_wsdlcacheflush>
|
| 22 |
+
</blocks>
|
| 23 |
+
</global>
|
| 24 |
+
|
| 25 |
+
<admin>
|
| 26 |
+
<routers>
|
| 27 |
+
<boiledegg_wsdlcacheflush>
|
| 28 |
+
<use>admin</use>
|
| 29 |
+
<args>
|
| 30 |
+
<module>BoiledEgg_WsdlCacheFlush</module>
|
| 31 |
+
<frontName>wsdlcache</frontName>
|
| 32 |
+
</args>
|
| 33 |
+
</boiledegg_wsdlcacheflush>
|
| 34 |
+
</routers>
|
| 35 |
+
</admin>
|
| 36 |
+
|
| 37 |
+
<adminhtml>
|
| 38 |
+
<layout>
|
| 39 |
+
<updates>
|
| 40 |
+
<boiledegg_wsdlcacheflush>
|
| 41 |
+
<file>wsdlcacheflush.xml</file>
|
| 42 |
+
</boiledegg_wsdlcacheflush>
|
| 43 |
+
</updates>
|
| 44 |
+
</layout>
|
| 45 |
+
</adminhtml>
|
| 46 |
+
</config>
|
app/design/adminhtml/default/default/layout/wsdlcacheflush.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<layout>
|
| 3 |
+
<adminhtml_cache_index>
|
| 4 |
+
<reference name="cache.additional">
|
| 5 |
+
<block type="boiledegg_wsdlcacheflush/flush" name="cache.wsdl" template="wsdlcacheflush/flush.phtml"></block>
|
| 6 |
+
</reference>
|
| 7 |
+
</adminhtml_cache_index>
|
| 8 |
+
</layout>
|
app/design/adminhtml/default/default/template/wsdlcacheflush/flush.phtml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<table class="form-list">
|
| 2 |
+
<tr>
|
| 3 |
+
<td class="scope-label">
|
| 4 |
+
<button onclick="setLocation('<?php echo $this->getFlushWsdlCacheUrl()?>')" type="button" class="scalable"><span><span><span><?php echo Mage::helper('adminhtml')->__('Flush WSDL Cache') ?></span></span></span></button>
|
| 5 |
+
</td>
|
| 6 |
+
<td class="scope-label">
|
| 7 |
+
<?php echo Mage::helper('adminhtml')->__('Magento Core API WSDL cache files.')?>
|
| 8 |
+
</td>
|
| 9 |
+
</tr>
|
| 10 |
+
</table>
|
app/etc/modules/BoiledEgg_WsdlCacheFlush.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<config>
|
| 3 |
+
<modules>
|
| 4 |
+
<BoiledEgg_WsdlCacheFlush>
|
| 5 |
+
<active>true</active>
|
| 6 |
+
<codePool>community</codePool>
|
| 7 |
+
</BoiledEgg_WsdlCacheFlush>
|
| 8 |
+
</modules>
|
| 9 |
+
</config>
|
package.xml
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0"?>
|
| 2 |
+
<package>
|
| 3 |
+
<name>BoiledEgg_WsdlCacheFlush</name>
|
| 4 |
+
<version>1.0.0</version>
|
| 5 |
+
<stability>stable</stability>
|
| 6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php ">OSL</license>
|
| 7 |
+
<channel>community</channel>
|
| 8 |
+
<extends/>
|
| 9 |
+
<summary>Adds a flush WSDL cache button in the systems cache management page</summary>
|
| 10 |
+
<description>Enables you to flush wsdl cache from the admin area. Especially comes in handy when developing API's.</description>
|
| 11 |
+
<notes>- Adds WSDL cache flush button in cache management admin page</notes>
|
| 12 |
+
<authors><author><name>Anton Evers</name><user>AntonEvers</user><email>ajpevers@gmail.com</email></author></authors>
|
| 13 |
+
<date>2014-04-25</date>
|
| 14 |
+
<time>16:41:51</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="BoiledEgg"><dir name="WsdlCacheFlush"><dir name="Block"><file name="Flush.php" hash="880e7e5806d6b128f817f77d394edc79"/></dir><dir name="controllers"><file name="FlushController.php" hash="44114ad057a8380aee21ae267adf3196"/></dir><dir name="etc"><file name="config.xml" hash="f6aaa7fe458b2cc5e3c8e681663ab2c5"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="wsdlcacheflush.xml" hash="b23a1a949043c343d42b2497438c0f78"/></dir><dir name="template"><dir name="wsdlcacheflush"><file name="flush.phtml" hash="99319938772399ac9aebb9cfbd8294a5"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="BoiledEgg_WsdlCacheFlush.xml" hash="309e40cb19ebe312297a32ff997758a5"/></dir></target></contents>
|
| 16 |
+
<compatible/>
|
| 17 |
+
<dependencies><required><php><min>5.1.0</min><max>5.5.0</max></php></required></dependencies>
|
| 18 |
+
</package>
|
