neoweiter Posted June 5, 2022 Share Posted June 5, 2022 Hello everytone, After noticing some slowness in the price drop page, I noticed that the getPricesDrop() function fires twice ! I added a echo 'test', that is beeing printed twice on my page. I tried this on multiple functions from classes/Product.php, and It always seems to fire twice. Is this normal ? Is this a bug in Prestashop's core ? Thanks Link to comment Share on other sites More sharing options...
Featured Comment Prestachamps Posted June 5, 2022 Featured Comment Share Posted June 5, 2022 Hi, I suppose that probably from the two calls one is used only for counting the products, and the other is for getting the product details. Have a nice day, Leo. Link to comment Share on other sites More sharing options...
neoweiter Posted June 5, 2022 Author Share Posted June 5, 2022 Wow that was exactly it ! Indeed it first calls the function for the listing query, and a second time for the count query. Thanks a lot Link to comment Share on other sites More sharing options...
Prestachamps Posted June 5, 2022 Share Posted June 5, 2022 Glade I could help Link to comment Share on other sites More sharing options...
Recommended Posts
Posted by Prestachamps,
0 reactions
Go to this post
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 accountSign in
Already have an account? Sign in here.
Sign In Now