GTranslate Pro Too large number of files - Server issue
Oct 12, 2011 5:16 am by 1969
Oct 12, 2011 5:16 am by 1969
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.
Re: GTranslate Pro Too large number of files - Server issue
Oct 12, 2011 11:07 am by Edvard
Oct 12, 2011 11:07 am by Edvard
Hi,
Where do you have that files?
In gtranslate/cache or in gtranslate/cache/XX language folders?
Re: GTranslate Pro Too large number of files - Server issue
Oct 12, 2011 11:16 am by 1969
Oct 12, 2011 11:16 am by 1969
In all the the individual cache folders.
Re: GTranslate Pro Too large number of files - Server issue
Oct 12, 2011 11:30 am by Edvard
Oct 12, 2011 11:30 am by Edvard
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 ?
Re: GTranslate Pro Too large number of files - Server issue
Oct 12, 2011 11:41 am by 1969
Oct 12, 2011 11:41 am by 1969
5,103 files
Re: GTranslate Pro Too large number of files - Server issue
Oct 12, 2011 11:49 am by Edvard
Oct 12, 2011 11:49 am by Edvard
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.
Re: GTranslate Pro Too large number of files - Server issue
Oct 12, 2011 1:15 pm by 1969
Oct 12, 2011 1:15 pm by 1969
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?
Re: GTranslate Pro Too large number of files - Server issue
Oct 12, 2011 3:39 pm by Edvard
Oct 12, 2011 3:39 pm by Edvard
Correct.
SIMILAR TOPICS
Gtranslate Multisite | Feb 12, 2019 7:27 am | Replies: 1 | Post by: infact_dat |
Gtranslate: Error with number | Feb 20, 2019 1:20 am | Replies: 1 | Post by: infact_dat |
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not defined | Feb 22, 2019 12:34 pm | Replies: 1 | Post by: oase |
Add-on gtranslate no longer works | Feb 2, 2019 6:01 am | Replies: 1 | Post by: DarylDixon |
Large numbers of crawl errors with double language code | Jan 24, 2019 1:43 am | Replies: 1 | Post by: natastna2 |