Setting Cache Expiry in Pro 3.14

Popular automatic website translation tool

Setting Cache Expiry in Pro 3.14

Postby orders@opencarttemplates.com » Sun Feb 20, 2011 8:41 pm

I see the default expiry time is set to one year :

Code: Select all
define('CACHE_TIME', 365*24*60*60); // 1 year


Can you please post instructions to set for x days, x weeks, x months etc?

Many thanks!

PS - a superb upgrade. LOVE the editing ability :D
orders@opencarttemplates.com
 
Posts: 5
Joined: Fri Feb 18, 2011 3:16 pm

Re: Setting Cache Expiry in Pro 3.14

Postby Edvard » Sun Feb 20, 2011 8:51 pm

The caching logic is changed in this version. Now it caches the translation string instead of the whole page. So if you post something new on your site, it will be visible when browsing in the new language. In previous version you needed to wait 20 by default to see the updates on your translated page.

So, now you set a cache time for a sentence or a short text. I think that there is no need to put less than 1 year. For example: I want to translate flowers to Spanish, whenever I ask Google to do that, it will give me the same result, so 1 year is good to use for cache. It will keep the response for one year and will not ask Google to translate flowers again to Spanish.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4349
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Setting Cache Expiry in Pro 3.14

Postby orders@opencarttemplates.com » Sun Feb 20, 2011 8:55 pm

This just gets better and better - you've really thought this through. Will be posting a very positive review on Joomla Extensions (username will be siteease if you want to look out for it!)

Many thanks once again.

Chris
orders@opencarttemplates.com
 
Posts: 5
Joined: Fri Feb 18, 2011 3:16 pm

Re: Setting Cache Expiry in Pro 3.14

Postby Edvard » Sun Feb 20, 2011 8:56 pm

Thanks for your kind words and thanks for the review in advance.
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4349
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron