Forums / Developer / Event calendar cache stuck [SOLVED]

Event calendar cache stuck [SOLVED]

Author Message

Lo' F.

Wednesday 01 September 2010 5:29:25 am

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!

loredanaebook.it

Ivo Lukac

Wednesday 01 September 2010 6:26:15 am

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

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Lo' F.

Friday 03 September 2010 7:36:36 am

"

- 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!

loredanaebook.it

Ivo Lukac

Sunday 05 September 2010 4:21:23 am

"
"

- 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 :)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac