- if same page is displayed in different languages the page key should include it.
- if when the page is updated it should be updated in all languages add a page specific trigger
for example "page_123_ru" with trigger "page_123"
Now when you want to update page and invalidate it in all languages just fire "page_123"
and all cached "page_123_ru" , page_123_en would be invalidated immediately.
Creating page for every user is in general counterproductive as user visit it once/twice and that's it.
You need to cache pages that are generated frequently such that cache would provide significant boost.
If you have some shared parts between multiple pages you can cache them (special frames) as well.
If you want to invalidate _all_ pages whatever they are you may either add a trigger "page" to all pages
and fire it or simply clear the cache - if pages in 99% of the cache content.
Artyom Beilis
--------------
CppCMS - C++ Web Framework: http://cppcms.com/
CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/
>________________________________
> From: Marcel Hellwig <ke...@co...>
>To: "cpp...@li..." <cpp...@li...>
>Sent: Sunday, July 21, 2013 8:56 PM
>Subject: [Cppcms-users] translate and cache
>
>
>Hi everyone,
>
>I'm approaching a little problem when I combine the techniques above.
>Let's say the client can define the language it wants. But my
>web-application use caching, that means there will be one version for
>everyone.
>What is a good solution:
>
> * create a cache page for every user and its corresponding language
>(plus triggers!)
> * create a cache page for every language (plus triggers for every
>page, plus a trigger for all pages)
> * disable caching? ;)
>
>Are there any other solution that were made while designing cppcms?
>
>Regards
>Marcel
>
>------------------------------------------------------------------------------
>See everything from the browser to the database with AppDynamics
>Get end-to-end visibility with application monitoring from AppDynamics
>Isolate bottlenecks and diagnose root cause in seconds.
>Start your free trial of AppDynamics Pro today!
>http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
>_______________________________________________
>Cppcms-users mailing list
>Cpp...@li...
>https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
>
> |