New hosts and when updating and product there is a lag when saving

Open to all! Ask other shopowners for help.
14Steve14
Senior Contributor
Posts: 923
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

Post by 14Steve14 »

I will be honest, I never Knew it updated automatically. Its a great feature that it does and it would be a shame to loose it. May be more should be made that it does auto update as its a great feature.


Join The Code Co-op to get access to your library in the Code Co-op Forum
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: New hosts and when updating and product there is a lag when saving

Post by burt »

Maybe this is a way;

1. Remove the auto updating feature which is what is causing a lag
2. After you've added/updated a product, show a message reminding you to manually click the Renew Products icon in that dashboard module.

That click only needs to be done once, so if you were adding/updating multiple products you could do them all, then click the icon.
I am not here to build for you.
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

Post by heatherbell »

burt wrote: Tue Apr 08, 2025 7:55 am 1. Remove the auto updating feature which is what is causing a lag
2. After you've added/updated a product, show a message reminding you to manually click the Renew Products icon in that dashboard module.
Recent posts here are referring to the PRO VIP Addon - app.php/addons/supporters_code/s06e02_xml_site_maps/
We also use it, it's excellent for SEO, but we don't experience a lag though maybe that's because of our server or that we have only ~1200 products.
In any case, if lag could be an issue, your suggestion would at least stop that default behaviour.
Guess having 'auto-update' as a yes/no option would also work but that's said with no knowledge of the code involved.
User avatar
mhsuffolk
Contributor
Posts: 199
Joined: Sat Oct 26, 2019 9:13 am
Phoenix Version: v1.1.0.6
Has thanked: 13 times
Been thanked: 11 times

Re: New hosts and when updating and product there is a lag when saving

Post by mhsuffolk »

Just a suggestion, please don't shoot me down if it is not practicable.
Could the code have a timer added so after a product is added or edited it waits say 10 minutes and then runs the XML site maps routine. During that 10 minutes if another product is added or edited it should reset the timer back to 10 mins. This would automate the process.
14Steve14
Senior Contributor
Posts: 923
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

Post by 14Steve14 »

Just an idea - could it be done with a cronjob which could be set to activate daily, weekly or what ever the user required.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply