Storing videos for any siteaccess.

Author Message

Guillaume R

Wednesday 28 March 2007 1:14:51 pm

Hi! I've a little problem. When I upload a video using the admin interface, eZ publish stores it in adminsiteaccess/storage/original/video. But the problem is if I'm browsing the video page in an other siteaccess version of the site it looks for the video in the current siteaccess/storage/original/video folder. It's not stored there so the video won't play.

The website uses 2 differents siteaccess for different languages, I would like to display the same videos in each of them.

I tried changing the VarDir FileSettings in site.ini to admin's storage folder to get the right path, the result was there but the cache is also using these filesettings - the siteaccess version won't get cached, I can't use that trick...

Anyone has an idea?

Ɓukasz Serwatka

Friday 30 March 2007 2:27:43 am

Hi,

What do you mean by

 the siteaccess version won't get cached?

?

View cache is stored per siteaccess. So it will be cached properly with same VarDir for all siteaccess as long as ViewCaching is enabled.

When all siteaccess using same database then VarDir MUST be same for all siteaccess public and non-public (admin). Other way you will run in troubles like you mention above (uploaded files are stored in wrong VarDir).

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Guillaume R

Monday 02 April 2007 8:27:10 am

Well, thanks for your reply. It helped me to solve the problem and it looks like view caching wasn't enabled.

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

Main resources:

Total runtime0.0209 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 587.9141152.6250
Module start 'layout' 0.00500.0031 740.539139.4453
Module start 'content' 0.00810.0105 779.984489.3359
Module end 'content' 0.01860.0022 869.320334.3047
Script end 0.0208  903.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.7478140.0002
Check MTime0.00115.1552140.0001
Mysql Total
Database connection0.00104.841010.0010
Mysqli_queries0.002612.331630.0009
Looping result0.00000.062810.0000
Template Total0.00178.110.0017
Template load0.00094.278910.0009
Template processing0.00083.809310.0008
Override
Cache load0.00063.087210.0006
General
dbfile0.00031.269480.0000
String conversion0.00000.022940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs