ezpublish processing images on *every* page load

Author Message

stephen Gazard

Friday 29 February 2008 4:07:24 am

I thought the point of the image cache was to avoid processing the images. It's causing problems with our hosts.

We've got images that change very little (a webshop), so once an item is resized (upon adding), it does not need to be reprocessed. It's quite draining on the server and causing us a headache each time the site is taken offline due to a runaway imagemagick process.

What settings do I need to use to tell ezpublish to point to the already converted objects; I don't want them converted each time; only at publishing.

Cheers,
Stephen

Xavier Dutoit

Monday 03 March 2008 3:58:52 am

Hi,

That's what it's supposed to do by default.

Are you sure your image cache is writable ? what about the modification date ? are you sure you don't have a backup process or something that updates the modification time of the images ?

(no idea why it does that)

X+

http://www.sydesy.com

Kristof Coomans

Monday 03 March 2008 5:47:25 am

Hi

If you're using eZ Publish 4.0.0, this might be caused by http://issues.ez.no/12386. This issue is fixed and eZ Publish 4.0.1 (release date unknown) will include this fix.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

stephen Gazard

Wednesday 05 March 2008 3:55:39 am

Sorry for the lack of details. I wrote that initial post a bit hastily.

I'm using eZpublish 3.8.10 (I know it's not supported). The cache is writable (CHMOD 0755). I don't have the cron job running (probably should but can't get that working without knocking over the site, I think).

The images are certainly created, with proper dates on them. All the image aliases are being generated, but it seems ezpublish is ignoring them.

The settings for the cache (that I can find; I could be missing things) are as follows. Note, the override and siteaccess settings are further down the page:
/settings/site.ini

[RoleSettings]
EnableCaching=false

[RegionalSettings]
TextTranslation=enabled
TranslationCache=enabled

[FileSettings]
CacheDir=cache

[TemplateSettings]
NodeTreeCaching=disabled
TemplateCache=disabled

[ContentSettings]
CacheThreshold=60
PreviewCacheUsers[]
PreviewCacheUsers[]=anonymous

[OverrideSettings]
Cache=enabled

/settings/override/site.ini.append.php

[TemplateSettings]
TemplateCompression=disabled
[

<b>Note, this is where I think the problem may lie. However, the aliases have been created by the admin using the same code below...</b>
/settings/siteaccess/site/image.ini.append.php

[<?php /* #?ini charset="iso-8859-1"?

[AliasSettings]
AliasList[]
AliasList[]=small
AliasList[]=collection
AliasList[]=thumb
AliasList[]=medium
AliasList[]=listitem
AliasList[]=articleimage
AliasList[]=articlethumbnail
AliasList[]=gallerythumbnail
AliasList[]=imagelarge
AliasList[]=large
AliasList[]=product
AliasList[]=artist
AliasList[]=rss
AliasList[]=logo
AliasList[]=pressFull
AliasList[]=aboutImage

[artist]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=100;160


[aboutImage]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=170;170

[collection]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=40;40


[small]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=60;120

[thumb]
Reference=
Filters[]
#Filters[]=geometry/scaledownonly=80;80!
Filters[]=geometry/scale=80;80

[pressFull]
Reference=
Filters[]=geometry/scale=700;1000

[medium]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=200;290

[large]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=400;400


[largeold]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=360;440!


[product]
Reference=
Filters[]
Filters[]=geometry/scale=240;240!


[rss]
Reference=
Filters[]
Filters[]=geometry/scale=88;31

[logo]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=250;58

[listitem]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=110;170

[articleimage]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=170;350

[articlethumbnail]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=70;150

[gallerythumbnail]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=70;150

[imagelarges]
Reference=
Filters[]
Filters[]=geometry/scaledownonly=360;440
*/ ?>

/public_html/clients/econe/settings/siteaccess/site/site.ini.append.php

[FileSettings]
VarDir=var/shop_site[FileSettings]
VarDir=var/shop_site

Looking forward to understanding if I've misconfigured something

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:10:22
Script start
Timing: Jan 18 2025 16:10:22
Module start 'layout'
Timing: Jan 18 2025 16:10:22
Module start 'content'
Timing: Jan 18 2025 16:10:23
Module end 'content'
Timing: Jan 18 2025 16:10:23
Script end

Main resources:

Total runtime0.7029 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.1641152.6563
Module start 'layout' 0.00610.0022 740.820339.5078
Module start 'content' 0.00830.6933 780.3281602.8359
Module end 'content' 0.70150.0013 1,383.164116.1094
Script end 0.7029  1,399.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4376160.0002
Check MTime0.00130.1881160.0001
Mysql Total
Database connection0.00130.183510.0013
Mysqli_queries0.647192.0618620.0104
Looping result0.00060.0861600.0000
Template Total0.674095.920.3370
Template load0.00180.262620.0009
Template processing0.672195.618820.3361
Template load and register function0.00010.019110.0001
states
state_id_array0.00090.133010.0009
state_identifier_array0.00120.172120.0006
Override
Cache load0.00150.2187340.0000
Sytem overhead
Fetch class attribute can translate value0.00080.112630.0003
Fetch class attribute name0.00150.215360.0003
XML
Image XML parsing0.00120.174730.0004
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00080.1125220.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs