Magento Themes and Magento Extensions

programatically clear magento cache

Share
Posted on February 3rd, 2013 | Posted by admin

programatically clear magento cache

01 <?php
02 include $_SERVER['DOCUMENT_ROOT'].'/app/Mage.php';
03 Mage::app('default');
04
05 /**
06 clear magento cache programatically
07 */
08
09 function clean_magento_cache(){
10 Mage::app()->getCache()->clean();
11 //Mage::app()->getCacheInstance()->flush();
12 //Mage::app()->cleanCache();
13 }
14 clean_magento_cache();
15
16 ?>

Enable Template Path hints for Admin Panel :Magento

Share
Posted on February 2nd, 2013 | Posted by admin

ust run this query in your magento database and u can see path hint in admin side of magento…

INSERT INTO core_config_data (scope, scope_id, path, value)

VALUES (‘default’, 0, ‘dev/debug/template_hints’, 1),

(‘default’, 0, ‘dev/debug/template_hints_blocks’, 1);

Page 3 of 3«123