Member
Member
wongm   2011-09-02, 01:16
#1

I am running a rather large Zenphoto gallery with 20170 photos in it, using the static HTML cache plugin with a cache lifetime of a few days. (http://railgallery.wongm.com/)

I upgraded Zenphoto from 1.3.1.2 to 1.4.1.23 over the weekend, and the daily CPU usage on my shared hosting account has shot up from previous peaks of 90-100% up to 130%-150%. The statistics provided by my web host have never been too accurate in the past (it's compiled on a daily basis by some mysterious cron job I know nothing about), but this massive rise has shocked me.

Has anyone else had similar experiences? Or running a similar sized gallery? I'm currently unsure whether to blame changes in the core Zenphoto code, or a misconfiguration at my end.

Administrator
Administrator
acrylian   2011-09-02, 08:10
#2

It is most likely both (meaning the server might be to slow for that much images especially if they are huge). But try the trunk or dev nightly as there have been some improvements (I don't remember if they may only be in the dev one though) and search the forum, we had this topic before.

Member
Member
wongm   2011-09-07, 21:58
#3

Here are my recent CPU usage stats - I upgraded on August 28:

2011-09-07 - 103%
2011-09-06 - 110%
2011-09-05 - 114%
2011-09-04 - 124%
2011-09-03 - 132%
2011-09-02 - 139%
2011-09-01 - 148%
2011-08-31 - 159%
2011-08-30 - 139%
2011-08-29 - 119%
2011-08-28 - 101%

I happened to notice that after upgrading every thumbnail and 'smaller' version of an image was being retrieved via i.php, but after a pageview the cached version was being used as per normal.

I presume that the new version of Zenphoto was not recognising my existing set of cached images after the upgrade, leading it to regenerate each and every thumbnail. With the decreasing CPU usage over time, I assume Zenphoto is using the cache correctly once it has been rebuilt.

Member
Member
sbillard   2011-09-07, 23:45
#4

We did some restructuring of the cache names.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.