Forums / Setup & design / multilanguage site : cache is not clear after publishing

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

eZ debug

Timing: Jan 18 2025 14:55:51
Script start
Timing: Jan 18 2025 14:55:51
Module start 'content'
Timing: Jan 18 2025 14:55:51
Module end 'content'
Timing: Jan 18 2025 14:55:51
Script end

Main resources:

Total runtime0.2519 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 587.9531180.8125
Module start 'content' 0.00510.0080 768.7656110.1016
Module end 'content' 0.01310.2386 878.8672538.2969
Script end 0.2518  1,417.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00361.4289200.0002
Check MTime0.00130.5170200.0001
Mysql Total
Database connection0.00050.189010.0005
Mysqli_queries0.184173.10741410.0013
Looping result0.00160.63001390.0000
Template Total0.238394.610.2383
Template load0.00100.385210.0010
Template processing0.237394.215410.2373
Override
Cache load0.00070.264410.0007
Sytem overhead
Fetch class attribute can translate value0.00050.208810.0005
XML
Image XML parsing0.00030.123910.0003
General
dbfile0.01837.2583200.0009
String conversion0.00000.002430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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