multilanguage site : cache is not clear after publishing

Author Message

laurent le cadet

Wednesday 21 May 2008 6:14:52 am

Hi,

I have a multilanguage site.
Only object in the default language have a regular behavior (cache is content view cache is clear after publishing).

In the other languages, modification are just visible in back office.

Probably a setting I can't find...

Any hint.

Best regards.

Laurent

André R.

Wednesday 21 May 2008 6:34:44 am

Siteaccess missing from RelatedSiteAccessList (site.ini) list ?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

laurent le cadet

Wednesday 21 May 2008 6:47:07 am

André,

I have this section for seach site access in each site.ini:

[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]=fr
RelatedSiteAccessList[]=en
RelatedSiteAccessList[]=de
RelatedSiteAccessList[]=cn
RelatedSiteAccessList[]=fr_admin
ShowHiddenNodes=false

 

laurent le cadet

Thursday 22 May 2008 5:54:52 am

Sorry to be back again, but even if it seems to be an ini trivial issue, I can't find the solution :((
I must clear the content cache to print out contents modifications in foreign language (front office).

I need assistance.

Laurent

Gurudutt Verma

Friday 23 May 2008 12:34:56 am

Hi Laurent,

Check your custom templates "{cache-block........}"

if this is okey then I propose to setup new multi language site from setup wizard on your local computer and then match the settings. from siteaccess.

laurent le cadet

Friday 23 May 2008 2:49:44 am

Hi Gurudutt,

{cache-block} was the first think I checked but they are ok.

Maybe the problem comes from a new language I added with setup/language.

The site was out for few minutes (fatal error) ans then it started again.

I didn't saw this "cache" problem at this moment but now I have a serious doubt that the new behaviour comes from that crash.

Everything was ok before and I didn't change any settings :

(i.e. english siteaccess)


[SiteAccessSettings]
RequireUserLogin=false
RelatedSiteAccessList[]=fr
RelatedSiteAccessList[]=en
RelatedSiteAccessList[]=de
RelatedSiteAccessList[]=cn
RelatedSiteAccessList[]=fr_admin
ShowHiddenNodes=false

[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
SiteLanguageList[]=eng-GB
SiteLanguageList[]=eng-US
SiteLanguageList[]=fre-FR
SiteLanguageList[]=ger-DE
SiteLanguageList[]=chi-CN
TextTranslation=enabled

Gurudutt Verma

Friday 23 May 2008 3:51:26 am

You mean site was broken/you got some error after adding new language.

Have you checked error log at that moment.

laurent le cadet

Friday 23 May 2008 6:47:22 am

Yes it was broken, but unfortunatly, I didn't checked error logs.

I stuck at this point

laurent le cadet

Thursday 19 June 2008 7:55:02 am

Hi,

I'm back again with this language troubles.
I have created 2 new site acces for italian and spanish so now there is fr, en, de, cn, it and es.

With the 2 site access it and es contents have been translated and viewable in backoffice but are print in french in frontoffice.

I'm checking and checking .ini files but can't find a solution.
There is no error in the log file.

Someone has an idea?

Any help will be very welcome.

Laurent

laurent le cadet

Thursday 19 June 2008 10:06:21 am

deeper in the sql debug output it appears that the proper language is not match.

Code for the italian page with french language_code

SELECT ezcontentobject_attribute.*, ezcontentclass_attribute.identifier as identifier FROM
                    ezcontentobject_attribute, ezcontentclass_attribute
                  WHERE
                    ezcontentclass_attribute.version = '0' AND
                    ezcontentclass_attribute.id = ezcontentobject_attribute.contentclassattribute_id AND
                    ( ( ezcontentobject_attribute.version = '33' AND
                    ezcontentobject_attribute.contentobject_id = '70' AND
                    ezcontentobject_attribute.language_code = 'fre-FR' )  OR ( ezcontentobject_attribute.version = '13' AND
                    ezcontentobject_attribute.contentobject_id = '81' AND
                    ezcontentobject_attribute.language_code = 'fre-FR' )  OR ( ezcontentobject_attribute.version = '13' AND
                    ezcontentobject_attribute.contentobject_id = '237' AND
                    ezcontentobject_attribute.language_code = 'fre-FR' )  OR ( ezcontentobject_attribute.version = '12' AND
                    ezcontentobject_attribute.contentobject_id = '281' AND
                    ezcontentobject_attribute.language_code = 'fre-FR' )  OR ( ezcontentobject_attribute.version = '29' AND
                    ezcontentobject_attribute.contentobject_id = '250' AND
                    ezcontentobject_attribute.language_code = 'fre-FR' )  OR ( ezcontentobject_attribute.version = '9' AND
                    ezcontentobject_attribute.contentobject_id = '336' AND
                    ezcontentobject_attribute.language_code = 'fre-FR' )  OR ( ezcontentobject_attribute.version = '16' AND
                    ezcontentobject_attribute.contentobject_id = '337' AND
                    ezcontentobject_attribute.language_code = 'fre-FR' )  )
                  ORDER BY
                    ezcontentobject_attribute.contentobject_id, ezcontentclass_attribute.placement ASC

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:14:13
Script start
Timing: Jan 18 2025 16:14:13
Module start 'layout'
Timing: Jan 18 2025 16:14:13
Module start 'content'
Timing: Jan 18 2025 16:14:14
Module end 'content'
Timing: Jan 18 2025 16:14:14
Script end

Main resources:

Total runtime0.7197 sec
Peak memory usage4,096.0000 KB
Database Queries80

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.2734152.6563
Module start 'layout' 0.00500.0024 741.929739.5078
Module start 'content' 0.00740.7109 781.4375680.8906
Module end 'content' 0.71830.0014 1,462.328124.0938
Script end 0.7197  1,486.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4469160.0002
Check MTime0.00140.1927160.0001
Mysql Total
Database connection0.00090.121010.0009
Mysqli_queries0.632987.9348800.0079
Looping result0.00090.1275780.0000
Template Total0.691796.120.3458
Template load0.00200.280720.0010
Template processing0.689795.820320.3448
Template load and register function0.00010.013210.0001
states
state_id_array0.00100.133110.0010
state_identifier_array0.00110.154920.0006
Override
Cache load0.00190.2603660.0000
Sytem overhead
Fetch class attribute can translate value0.00090.123030.0003
Fetch class attribute name0.00180.2511130.0001
XML
Image XML parsing0.00150.205530.0005
class_abstraction
Instantiating content class attribute0.00010.0072200.0000
General
dbfile0.00100.1364290.0000
String conversion0.00000.000940.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
10content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 43
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs