Jump to content

Override and front very slow


PBCreativeSolutions

Recommended Posts

Hello

I had to override the Product.php class, regularly prepared in the override\classes path.

What I do not understand is why the front loading of the products turns out to be extremely slow compared to loading without overriding and this even if I make sure that the instructions introduced in the class __construct are not executed.

Assuming also to leave (but only for the checks) the __construct in this way the loading is extremely slow.

public function __construct ($ id_product = null, $ full = false, $ id_lang = null, $ id_shop = null, Context $ context = null)
{
parent :: __ construct ($ id_product, $ id_lang, $ id_shop);
}

Thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...