Skip to content

magento man

Reduce initial response time?

Hey, I am using shared hosting, but my initial response time is about 1 sec, i want it to be in milli seconds. What hosting would be best t… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1887132&goto=newpost

Should we use require_once in a module’s registration.php?

I am of the opinion that using require_once in registration.php is not ok and possibly against Magento coding standards. Am I right or wrong? <?php MagentoFrameworkComponentComponentRegistrar::register( MagentoFrameworkComponentComponentRegistrar::MODULE, ‘Vendor_Module’, __DIR__ ); require_once(BP.’/lib/internal/SomeModule/src/somemodule/autoload.php’);

magento 2 : is it impact on isting page performance for $_product->getResource()->getAttribute(‘custom_attribute_code’)?

I have a custom attribute which has 15 text values. I am using $_product->getResource()->getAttribute($attributecode)->getFrontend()->getValue($_product); . In catalog page I have used above code get the text value of attribute for every product in for loop, is it impacted on performance… Read More »magento 2 : is it impact on isting page performance for $_product->getResource()->getAttribute(‘custom_attribute_code’)?