Caching and storage, var/admin vs var/custom design, storing of images ?

Author Message

Tore Skobba

Friday 12 December 2003 8:14:00 am

Hi

I have installed EZ 3-2-3 and I am working on a site (note gsa is the name of the design, gsa_admin is admin). My problem is related to image uploading for articles. The problem is:

1: In Admin interface I add an image, this image is available in the admin interface, furthermore it is stored correctly in "var/gsa_admin/storeage.../"

2: But when viewing the site with the user design (gsa), then this image is not available. Checking the folder I note that "var/gsa/storeage/" does not contain the image anywhere.

From my "gsa_admin/site.ini.append"
[FileSettings]
VarDir=var/gsa_admin

Is this wrong? Becuase if I change it to:
VarDir=var/gsa then everything works!!! But then both design are cached in the same folder! Is this the correct way to do it?? Shouldnt each design have their own cache???

Cheers
Tore

Gunnstein Lye

Wednesday 17 December 2003 9:46:21 am

Normally, a site uses the same cache folder for all site accesses. You can safely use the default settings for this.

Tore Skobba

Thursday 18 December 2003 1:33:43 am

So the default settings are "var" and not "var/your_design" ?

Gunnstein Lye

Thursday 18 December 2003 2:31:14 am

Yes. VarDir=var is the default. You rarely need to change this.

Balazs Halasy

Friday 19 December 2003 1:14:18 am

If you're running only one site with two siteaccesses (usually admin interface and user/public interface) then you don't need to change the default var setting. However, if you're planning to run several sites then you should use VarDir=var/site_one, VarDir=var/site_two, etc.

Balazs

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 19 2025 04:36:59
Script start
Timing: Jan 19 2025 04:36:59
Module start 'layout'
Timing: Jan 19 2025 04:36:59
Module start 'content'
Timing: Jan 19 2025 04:37:00
Module end 'content'
Timing: Jan 19 2025 04:37:00
Script end

Main resources:

Total runtime0.9014 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 589.6406152.6875
Module start 'layout' 0.00470.0029 742.328139.5234
Module start 'content' 0.00760.8921 781.8516569.3125
Module end 'content' 0.89970.0017 1,351.164112.0625
Script end 0.9013  1,363.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3666160.0002
Check MTime0.00130.1408160.0001
Mysql Total
Database connection0.00070.074710.0007
Mysqli_queries0.845493.7898650.0130
Looping result0.00060.0700630.0000
Template Total0.870996.620.4355
Template load0.00200.226320.0010
Template processing0.868996.390820.4344
Template load and register function0.00020.026710.0002
states
state_id_array0.00120.134810.0012
state_identifier_array0.00150.171320.0008
Override
Cache load0.00170.1935260.0001
Sytem overhead
Fetch class attribute can translate value0.00060.067130.0002
Fetch class attribute name0.00180.198970.0003
XML
Image XML parsing0.00120.127930.0004
class_abstraction
Instantiating content class attribute0.00000.002280.0000
General
dbfile0.00100.1100220.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs