GTranslate Pro Too large number of files - Server issue

Popular automatic website translation tool

GTranslate Pro Too large number of files - Server issue

Postby 1969 » Wed Oct 12, 2011 9:16 am

Hi

My server is running out of inodes which has temporarily been increased slightly until we find a solution.

Gtranslate folder has +300,000 files. Is there any way to reduce amount of files in these folders by suppressing some languages in the module? When I do so, it seems that the cache is still very large.

Thanks for your help.
1969
 
Posts: 28
Joined: Tue Oct 11, 2011 11:48 am

Re: GTranslate Pro Too large number of files - Server issue

Postby Edvard » Wed Oct 12, 2011 3:07 pm

Hi,

Where do you have that files?

In gtranslate/cache or in gtranslate/cache/XX language folders?
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: GTranslate Pro Too large number of files - Server issue

Postby 1969 » Wed Oct 12, 2011 3:16 pm

In all the the individual cache folders.
1969
 
Posts: 28
Joined: Tue Oct 11, 2011 11:48 am

Re: GTranslate Pro Too large number of files - Server issue

Postby Edvard » Wed Oct 12, 2011 3:30 pm

You can delete all files directly in cache folder.

Check and let me know how many files there are in an individual language folder, let's say cache/es ?
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: GTranslate Pro Too large number of files - Server issue

Postby 1969 » Wed Oct 12, 2011 3:41 pm

5,103 files
1969
 
Posts: 28
Joined: Tue Oct 11, 2011 11:48 am

Re: GTranslate Pro Too large number of files - Server issue

Postby Edvard » Wed Oct 12, 2011 3:49 pm

OK, so in average every language folder will have 5000 files for your site and 5000 x 58 = 290000 files...

To disable some of the languages you need to remove them from your sitemap.txt file and also modify .htaccess file and replace [a-z]{2}|zh-CN|zh-TW with the language codes you want to stay enabled, ex.

en|ru|it|de|fr|sv ... etc.

After that you can delete the files in disabled language folders to reduce files amount.
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: GTranslate Pro Too large number of files - Server issue

Postby 1969 » Wed Oct 12, 2011 5:15 pm

Ok thanks Edvard,

YOU MEAN
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/([a-z]{2}|zh-CN|zh-TW)$ /$1/ [R=301,L]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^([a-z]{2}|zh-CN|zh-TW)$ /gtranslate/translate.php?lang=$1 [L,QSA]

BECOMES:
RewriteRule ^(en|ru|it|de|fr|sv)/(en|ru|it|de|fr|sv)/(.*)$ /$1/$3 [R=301,L]
RewriteRule ^(en|ru|it|de|fr|sv)/(en|ru|it|de|fr|sv)$ /$1/ [R=301,L]
RewriteRule ^(en|ru|it|de|fr|sv)/(.*)$ /gtranslate/translate.php?lang=$1&url=$2 [L,QSA]
RewriteRule ^(en|ru|it|de|fr|sv)$ /gtranslate/translate.php?lang=$1 [L,QSA]

Right?
1969
 
Posts: 28
Joined: Tue Oct 11, 2011 11:48 am

Re: GTranslate Pro Too large number of files - Server issue

Postby Edvard » Wed Oct 12, 2011 7:39 pm

Correct.
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Yana and 0 guests

2GLux