This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » eZ Publish 5 Platform » Cache prod env
expandshrink

Cache prod env

Cache prod env

Thursday 26 February 2015 10:12:58 pm - 5 replies

Hi,

on a recent site ( 5.4)  we face a strange issue, everytime we clear the cache (env=prod) , the first page fallback to the legacy and refresh the same page everything is back to normal.
Imight be a misconfiguration but i can't find where.. BTW on dev env it's fine.

Is anyone encounter this problem ?

Friday 27 February 2015 11:31:09 am

Do you use specific tree_root.location_id ? (which was root node id in eZ Publish).

Friday 27 February 2015 1:34:43 pm

nope , just a single site

here is ezpublish.ym conf

https://gist.github.com/joelmajes/aa0cdf679b6409a03c3c

Saturday 14 March 2015 1:47:17 pm

Hi. I don't remember anything similar passing by. I'll ping Jérôme, maybe he'll have a clue.

Saturday 14 March 2015 10:59:36 pm

Hi,

I have the same behaviour only for the pageLayout class like the home location . Try to empty  the prod cache and refresh/call another class (Object) in the frontend(example your own class) and see if you have the same problem.

Here my solution:

- copie the pagelayout class to another class and rename it to "frontendpage" (as class identifier)

- create the full view for this class in views/full/frontendpage.html.twig

- extend the pagelayout in this template

 {% extends noLayout ? viewbaseLayout : "YOUR-BUNDLE::pagelayout.html.twig" %}

- Add your class in ezpublish.yml (group)

 ezpublish:
    system:
        YOUR-SITEACCESSGROUP:
            location_view:
                full:
                    frontpage:
                        template: YOUR-BUNDLE:full:frontpage.html.twig
                        match:
                            Identifier\ContentType: frontpage

Tuesday 17 March 2015 1:07:14 am

Hmm,

 

that is rather strange, any additional clues to why you need to do that? or why you think that helps?

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from