Magento. How To Optimize (Speed Up) A Website

Published by admin on



The following tutorial will show you how to optimize your Magento site performance.
To view more our Magento templates go to website:

More Magento Tutorials:

Subscribe Our Channel:

Follow us:
Facebook
Twitter
Instagram @template_monster
Pinterest
Dribbble
LinkedIn

source


1 Comment

Roger Keulen · June 28, 2018 at 6:50 pm

Compilation in Magento:

Go to: core/Mage/Compiler/Model/Process.php

00055     /**
00056      * Get compilation config
00057      *
00058      *@return Mage_Core_Model_Config_Base
00059      */
00060     public function getCompileConfig()
00061     {
00062         if ($this->_compileConfig === null) {
00063             $this->_compileConfig   = Mage::getConfig()->loadModulesConfiguration('compilation.xml');
00064         }
00065         return $this->_compileConfig;
00066     }

compilation.xml is a good hint !

And, same file:
00193     public function getCompileClassList()
00194     {
00195         $arrFiles = array();
00196         $statDir  = $this->_statDir;
00197         $statFiles= array();
00198         if (is_dir($statDir)) {
00199             $dir = dir($statDir);
00200             while (false !== ($file = $dir->read())) {
00201                 if (($file[0] == '.')) {
00202                     continue;
00203                 }
00204                 $statFiles[str_replace('.csv', '', $file)] = $this->_statDir.DS.$file;
00205             }
00206         }
00207 

The word 'statFiles' should ring a bell.

For all the viewers, warning NOOB at work that can't read PHP code !

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

en_USEnglish
en_USEnglish
%d bloggers like this: