Zen Cart Logo

SitemapXML v.2

Views: 613,209

Results 1,981 to 2,000 of 2,226
14 Sep 2020, 4:31 PM
#1981
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

SitemapXML v.2

Yes, the zen_admin_demo function was removed in zc157; commenting that line out is the thing to do.

15 Sep 2020, 11:33 AM
#1982
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: SitemapXML v.2

torvista:

Thanks for the comments.

In the end I put
ini_set('memory_limit','512M');
in the sitemapxml.php file called by the cron, to keep it self contained.

Which file did you modify?

15 Sep 2020, 11:42 AM
#1983
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,866
Plugin Contributions:
7

Re: SitemapXML v.2

Which file did you modify?
The one called by the cron

YourShopPath\cgi-bin\sitemapxml.php

<?php
ini_set('memory_limit','512M');
15 Sep 2020, 1:11 PM
#1984
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: SitemapXML v.2

thank you

23 Sep 2020, 5:11 PM
#1985
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,953
Plugin Contributions:
8

Re: SitemapXML v.2

in troubleshooting a speed issue on a development site, i came across the plugin check for updates.

considering this plugin is updated every 1 to 1.5 years, is it really necessary to check for an update on every page load on the admin? or did i butcher my install?

23 Sep 2020, 5:31 PM
#1986
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: SitemapXML v.2

carlwhat:

in troubleshooting a speed issue on a development site, i came across the plugin check for updates.

considering this plugin is updated every 1 to 1.5 years, is it really necessary to check for an update on every page load on the admin? or did i butcher my install?
FWIW, I normally disable that check upon install of the SiteMap XML as well (and for the same reason).

23 Sep 2020, 5:33 PM
#1987
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: SitemapXML v.2

Ditto .

23 Sep 2020, 7:12 PM
#1988
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,953
Plugin Contributions:
8

Re: SitemapXML v.2

lat9:

FWIW, I normally disable that check upon install of the SiteMap XML as well (and for the same reason).

DrByte:

Ditto .

:thumbsup:

thanks.

24 Sep 2020, 10:24 AM
#1989
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: SitemapXML v.2

carlwhat:

in troubleshooting a speed issue on a development site, i came across the plugin check for updates.

considering this plugin is updated every 1 to 1.5 years, is it really necessary to check for an update on every page load on the admin? or did i butcher my install?

lat9:

FWIW, I normally disable that check upon install of the SiteMap XML as well (and for the same reason).

I see how to disable version checking for this mod in init_sitemapxml.php but wonder how can I tell that version checking (on every page load) is actually taking place. Is it just by identifying the relevant code or is there another way such as server logs, browser console. It seems that it might be useful to know if other mods are carrying out excessive checking. Hope the answer is not too blindingly obvious.

24 Sep 2020, 10:33 AM
#1990
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: SitemapXML v.2

simon1066:

I see how to disable version checking for this mod in init_sitemapxml.php but wonder how can I tell that version checking (on every page load) is actually taking place. Is it just by identifying the relevant code or is there another way such as server logs, browser console. It seems that it might be useful to know if other mods are carrying out excessive checking. Hope the answer is not too blindingly obvious.
There's no indication (maybe the admin-access log?) that I'm aware of; my approach is to simply search via the Developers Tool Kit for plugin_version_check_for_updates, that tells me who's using the function.

24 Sep 2020, 2:50 PM
#1991
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,953
Plugin Contributions:
8

Re: SitemapXML v.2

simon1066:

I see how to disable version checking for this mod in init_sitemapxml.php but wonder how can I tell that version checking (on every page load) is actually taking place. Is it just by identifying the relevant code or is there another way such as server logs, browser console. It seems that it might be useful to know if other mods are carrying out excessive checking. Hope the answer is not too blindingly obvious.

simon, i find nothing on a modern website is blindingly obvious. finding this problem required far more time than i care to admit. a little background: my virtual web server runs a few different development sites. in comparing 2 of the sites, i noticed 1 is blindingly fast compared to the other on the admin. they are both customized v157 development sites; but again served up by the same host. after comparing the db engines and converting tables, and the like, with no discernable difference, i downloaded this plugin, and started looking at parse times and db queries at various times during the page load and finally found the culprit.

you can always add this define somewhere in your load:

define('ENABLE_PLUGIN_VERSION_CHECKING', false);

to prevent checking on any plugin. and therefore saving time. you can then manually check to see if there is a new version when you run into problems with an outdated version.

at the end of the day, maintaining a plugin takes a bit of time and commitment. and its clear that this plugin needs a bit of maintenance. the current download still makes use of the zen_admin_demo() function, which generates an error, and i think moving the plugin version check to a more appropriate place are needed. i'm hopeful to make a little time and perhaps help out with it. you never know...

best.

24 Sep 2020, 5:03 PM
#1992
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: SitemapXML v.2

Is there a way to improve the speed at which the sitemap generates the product files?

Server is very fast, RAID NVME drives, 256gb RAM and epyc cpu

However, the time taken to build out the products files takes many hours.

Why is the sitemap creation for products so slow compared to categories?

24 Sep 2020, 5:10 PM
#1993
simon1066 avatar

simon1066

Totally Zenned

Join Date:
Feb 2009
Location:
UK
Posts:
1,326
Plugin Contributions:
0

Re: SitemapXML v.2

carlwhat:

you can always add this define somewhere in your load:

define('ENABLE_PLUGIN_VERSION_CHECKING', false);

> to prevent checking on any plugin.  and therefore saving time.  you can then manually check to see if there is a new version when you run into problems with an outdated version.

Thanks, that's useful. I tend to keep an fairly close eye on the release of plugin updates (esp. though github) so tend not to rely on the version checking in admin, I may incorporate that if I feel there's to be a speed benefit in admin.
25 Sep 2020, 3:32 PM
#1994
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: SitemapXML v.2

Curious, I'm upgrading my site to work with ZC1.5.7, php7.4 and all the mods I use in it like this one. I've started rewriting the code and notice that it goes through allot of version checking with in the code along with some complicated installation/upgrading code. Is there any reason you can think of that version checking and complicated installation/upgrading is needed? I've removed all of it, about half the code page, and now its working. Still needs allot of cleanup, but Installing, removal according to ZC1.5.7 plugin rules.

25 Sep 2020, 4:12 PM
#1995
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: SitemapXML v.2

davewest:

Curious, I'm upgrading my site to work with ZC1.5.7, php7.4 and all the mods I use in it like this one. I've started rewriting the code and notice that it goes through allot of version checking with in the code along with some complicated installation/upgrading code. Is there any reason you can think of that version checking and complicated installation/upgrading is needed? I've removed all of it, about half the code page, and now its working. Still needs allot of cleanup, but Installing, removal according to ZC1.5.7 plugin rules.
Agreed on the version/installation checking complexity. I'll be interested to see how the zc157/plugin form works for you!

26 Sep 2020, 12:21 PM
#1996
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: SitemapXML v.2

DigitalShadow:

Is there a way to improve the speed at which the sitemap generates the product files?

Anyone got any suggestions?

The products sitemaps are only processing about half my products, gets to about 300000 and stops.

The 59 files take about 280 minutes to complete and then the script seems to stop running.

A 5000 item product sitemap file takes about 4 minutes to complete

A 5000 item category file takes about 3 seconds to complete.

26 Sep 2020, 3:12 PM
#1997
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,953
Plugin Contributions:
8

Re: SitemapXML v.2

DigitalShadow:

Anyone got any suggestions?

The products sitemaps are only processing about half my products, gets to about 300000 and stops.

The 59 files take about 280 minutes to complete and then the script seems to stop running.

A 5000 item product sitemap file takes about 4 minutes to complete

A 5000 item category file takes about 3 seconds to complete.

you need to provide more data and then you need to dig into the logs. you can post some of the execution times that come directly from the plugin, but i would think something is adrift and you need to look at your logs. for example:

Total: files 1, items 434 (86918 bytes), execution time 0:0.4242, db queries 1713, db queries time 0:0.3239.

hard to tell what is going on wo more data.

26 Sep 2020, 3:30 PM
#1998
digitalshadow avatar

digitalshadow

Totally Zenned

Join Date:
Mar 2009
Posts:
616
Plugin Contributions:
0

Re: SitemapXML v.2

Adding the correct indexes on the ceon uri database fixed the problem.

Total: Execution Time 6:11.3440, DB Queries 4057474, DB Queries Time 300.304.

3 Oct 2020, 3:01 PM
#1999
vasilt avatar

vasilt

New Zenner

Join Date:
Jan 2006
Posts:
44
Plugin Contributions:
0

Re: SitemapXML v.2

Any idea why the ezpages xml file includes links only for the default language? Categories and Products xml files are OK, include links for all languages.

3 Oct 2020, 10:10 PM
#2000
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: SitemapXML v.2

vasilt:

Any idea why the ezpages xml file includes links only for the default language? Categories and Products xml files are OK, include links for all languages.

Good catch... don't use it myself, but it looks like it needs updating. Still based on ZC1.3.9 code for ezpages... has a typo think TABLE_EZPAGES_TEXT can't find that table anywhere... plus the old code has a sniffer that's not working with php7.4 Well have to look more at mine..