Phoenix 1.0.9.0 PHP8
This may be something that we have to live with but since moving to a new hosts we are having a small problem when updating products in our admin. There is a short lag of maybe 5-10 seconds when ever we click the save button when we update a product, or create a new product. No other action in the admin seems to be affected. We are having the same problem on our test site which is on the same new hosts but using a different database.
I have tried uninstalling some added modules and code which were hooks and even with only the original core categories code there is still a lag. I am assuming that this is something to do with the database or the database server. There are no errors in the log files for the live site and the test site.
I have checked the database and the products table, plus tried repairing the table in phpmyadmin and its all reported back as OK.
I have asked the hosts and they say there are no errors on the server. The database is stored on the same server apparently as the website.
Does anyone know of a way to test what the code is doing when updating a product, or even had a similar problem.
Cheers
Steve
New hosts and when updating and product there is a lag when saving
- burt
- Core Team
- Posts: 4551
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: New hosts and when updating and product there is a lag when saving
It's not something that's been reported previously as far as I know.
It might be worth looking at the hosting access_log immediately after updating/making a product to try to see where the process is hanging.
It might be worth looking at the hosting access_log immediately after updating/making a product to try to see where the process is hanging.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
14Steve14
- Senior Contributor
- Posts: 922
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Has thanked: 17 times
- Been thanked: 103 times
Re: New hosts and when updating and product there is a lag when saving
Thanks Gary. Not blaming Phoenix for this as convinced its a setting somewhere on the server, but no idea where to find what is causing the problem. Will have a look on the server logs to see if I can see anything. Host say there is no problem which is what I would expect them to say, but there must be something somewhere.
- Pierre_P
- Contributor
- Posts: 144
- Joined: Fri Mar 12, 2021 5:06 am
- Phoenix Version: v1.1.0.6
- Has thanked: 21 times
- Been thanked: 11 times
Re: New hosts and when updating and product there is a lag when saving
I had this long wait cause each time you are editing or adding a new product the products xml files was renewed
- burt
- Core Team
- Posts: 4551
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: New hosts and when updating and product there is a lag when saving
That would be a possibility especially on shops with a lot of products.
To test if this is the culprit, simply remove this file (temporarily for testing);
/includes/hooks/admin/catalog/XML_writer.php
and then, when it is removed...try updating a product.
If there is still a lag, you know this is not the problem area.
If the lag is gone, you know this is the problem area.
To test if this is the culprit, simply remove this file (temporarily for testing);
/includes/hooks/admin/catalog/XML_writer.php
and then, when it is removed...try updating a product.
If there is still a lag, you know this is not the problem area.
If the lag is gone, you know this is the problem area.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
14Steve14
- Senior Contributor
- Posts: 922
- Joined: Fri Oct 25, 2019 7:01 pm
- Phoenix Version: v1.0.9.1
- Has thanked: 17 times
- Been thanked: 103 times
Re: New hosts and when updating and product there is a lag when saving
Gary
Quick update.
I remove the code /includes/hooks/admin/catalog/XML_writer.php that you suggested and the lag is gone.
Quick update.
I remove the code /includes/hooks/admin/catalog/XML_writer.php that you suggested and the lag is gone.
- burt
- Core Team
- Posts: 4551
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: New hosts and when updating and product there is a lag when saving
OK, I'll try to think of a different way to update the XML when products are edited/added.
Leave it with me.
Leave it with me.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: New hosts and when updating and product there is a lag when saving
The addon already has a neat manual update button? Does it have to be automatic on product edit/save?
- burt
- Core Team
- Posts: 4551
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: New hosts and when updating and product there is a lag when saving
I haven't looked at it in a long time.
Does it have something in the dashboard?
I seem to vaguely remember that.
Does it have something in the dashboard?
I seem to vaguely remember that.
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: New hosts and when updating and product there is a lag when saving
Yes, icons to renew separately or all files at once.
You do not have the required permissions to view the files attached to this post.