Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PERFORMANCE] Configuration option to disable product specific layout update handles #189

Closed
tmotyl opened this issue Jan 15, 2013 · 5 comments

Comments

@tmotyl
Copy link
Contributor

tmotyl commented Jan 15, 2013

Magento provides layout update handles specific for each product e.g. PRODUCT_123
So for each product in each store view there is one layout cache record (with xml layout) even if you;re not using this feature.
if you have e.g. 1000 simple products, than you will also have 1000 cache entries, each for one product. If you are not using layout handles for specific products, than all these 1000 records are the same.
Actually most of the cache entries in the cache backend are cached layouts.

If there were configuration option for disabling usage of these update handles, than Magento would need to generate this layout xml only once. This way layouts could be generated once and reused between products, which would save a lot of rendering time.

The same problem applies for categories. Each category has also dedicated layout update handle which caused layout to be cached separately.

@magento-team
Copy link
Contributor

Hello. Very interesting comment as there are also requests to increase the number of handles by @paales . Have you noticed performance slowdown with those handles or you actually tested it? Would faster cache backend help with that? I would rather not make this configurable as 3rd party extensions or customizations might depend on it.

@paales
Copy link
Contributor

paales commented Jan 18, 2013

The other issue about adding extra handles is discussed here: #102

@magento-team
Copy link
Contributor

Closing due to lack of recent activity

magento-team pushed a commit that referenced this issue Mar 23, 2015
mazhalai added a commit that referenced this issue Nov 17, 2015
taskula pushed a commit to Hypernova-Oy/magento2 that referenced this issue Aug 9, 2019
@ilnytskyi
Copy link
Contributor

Wow it's 2020 and I faced the same issue.
Selection_860
If we do not need (do not use) updates for products and categories, we would just disable them and would save a lot of space in cache storage and have faster rendering on big catalogs.
For now I see possibility to apply patches or pluginize those classes.

\Magento\Catalog\Helper\Product\View::initProductLayout
 
\Magento\Framework\View\Result\Page::addPageLayoutHandles

it would be extremely useful to manage it from config panel

@ilnytskyi
Copy link
Contributor

When we removed entity ids from layout handles. We reduced used cache space significantly and it also improved overall page performance.
Selection_639

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants