eZ Community » Forums » Developer » Event calendar cache stuck [SOLVED]
expandshrink

Event calendar cache stuck [SOLVED]

Event calendar cache stuck [SOLVED]

Wednesday 01 September 2010 2:29:25 pm - 4 replies

Hi there,

I embedded a calendar object of the event calendar class in my home page.

When I load the page the calendar is stuck at the date when the page was last loaded. In order to set the actual date I need to clear the cache manually from the back-end panel.

Is there a way I can overcome this small issue and make the calendar updating itself when the date changes?

Thank you guys, as always, in advance!

Modified on Tuesday 07 September 2010 10:11:45 pm by Lo' F.

Wednesday 01 September 2010 3:26:15 pm

By embeding it into homepage it became a part of the homepage view cache. You can do several things:

- every night after midnight run bin/php/ezcontentcache.php script for clearing view cache for homepage node

- put some shorter TTL time in frontpage template, e.g. 2 hours: {set-block scope=root variable=cache_ttl}7200{/set-block}

- or show that calendar in some other way, e.g. in pagelayout, not through frontpage content node

Friday 03 September 2010 4:36:36 pm

- put some shorter TTL time in frontpage template, e.g. 2 hours: {set-block scope=root variable=cache_ttl}7200{/set-block}

Ivo, thank you so much! This TTL solution seems to work just fine.

p.s. Sorry for not having come back to you soon but needed to test and it took a day!

Sunday 05 September 2010 1:21:23 pm

- put some shorter TTL time in frontpage template, e.g. 2 hours: {set-block scope=root variable=cache_ttl}7200{/set-block}

Ivo, thank you so much! This TTL solution seems to work just fine.

p.s. Sorry for not having come back to you soon but needed to test and it took a day!

The important thing is that the issue is solved happy.gif Emoticon

Friday 16 August 2013 12:47:44 am

Hello Lo' F. and Ivo Lukač

Can you please explain how you embedeed the calendar object of the event calendar class on the home page ??

I am trying with a block without luck. 

I defined the block in ezdemo: block.ini.append:  

 AllowedTypes[]=EventCalendar
[EventCalendar]Name=CalendarNumberOfValidItems=1NumberOfArchivedItems=1ManualAddingOfItems=enabledViewList[]=eventcalendarViewName[eventcalendar]=Event Calendar

siteacces override.ini.append: 

[block_event_calendar]Source=block/view/view.tplMatchFile=full/event_calendar.tplSubdir=templatesMatch[type]=EventCalendarMatch[view]=eventcalendar 

The debug on the client side just is showing:extension/ezdemo/design/ezdemo/override/templates/full/event_calendar.tpl

But is empty.. thanks for you help

Modified on Friday 16 August 2013 1:00:10 am by Freddy Rodriguez

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from