wpsharks / comet-cache

An advanced WordPress® caching plugin inspired by simplicity.
https://cometcache.com
GNU General Public License v3.0
75 stars 17 forks source link

Feature Request: qTranslate support #91

Open sardbaba opened 10 years ago

sardbaba commented 10 years ago

Hi, when working with multilangual plugins like qTranslate and QuickCache, it seems that QC prevents to get the right redirection, based on the browser language. Is it a known issue? There is something I can do?

Thanks for this great work Mauro

raamdev commented 10 years ago

Hi @sardbaba,

I'm not sure what you mean by "QC prevents to get the right redirection". Could you please elaborate or provide an example?

sardbaba commented 10 years ago

Hi @raamdev,

Ok. The question is that if I configured 2 languages, lets say "en" and "it", with "en" as default, when I open my site with an english browser my expectation is that it uses "en". Same stuff if I have the italian browser. This works like a charm when QC is not enabled. When QC is on, it give me always the en version when the site is chached. If I clear the cache and load the website with my italian browser it works, but after that it returns to be on "en" language. It is not very simple to explain, probably a screencast or a direct check should be better.

Hi @sardbabahttps://github.com/sardbaba?utm_campaign=website&utm_source=sendgrid.com&utm_medium=email ,

I'm not sure what you mean by "QC prevents to get the right redirection". Could you please elaborate or provide an example?

— Reply to this email directly or view it on GitHubhttps://github.com/WebSharks/Quick-Cache/issues/91?utm_campaign=website&utm_source=sendgrid.com&utm_medium=email#issuecomment-40636280 .

raamdev commented 10 years ago

In Dashboard → Settings → Languages → Advanced Settings, can you tell me what you have selected for URL Modification Mode?

Also, can you tell me if Hide URL language information for default language. is checked (it's right below the above option)?

sardbaba commented 10 years ago

Hi @raamdev

URL Modification Mode: Use Pre-Path Mode (Default, puts /en/ in front of URL) and yes, Hide URL language information for default language is checked.

raamdev commented 10 years ago

Thank you for the update.

I will need to investigate this further and see if I can add support for this plugin. You may also want to contact the qTranslate developers and ask them if there's anything they can do to improve support for Quick Cache.

In the meantime, I recommend excluding the other languages from the cache so that they load properly. If you have Quick Cache Pro, you can do this by adding /it/ to the URI Exclusion Patterns list in Dashboard → Quick Cache → URI Exclusion Patterns.

I'm going to change the title of this issue to "Feature Request: qTranslate support" and add this to my todo list.

sardbaba commented 10 years ago

Hi,

thanks for looking at this. I've mailed Qian (qTranslate's owner) pointing him to this discussion. I hope that with co-working this issue can be fixed soon.

If can be useful I've find a dev-plugin which do a similar fix but for WPML. Here is: http://wordpress.org/plugins/black-studio-wpml-javascript-redirect/

Thanks again

sardbaba commented 10 years ago

Hi @raamdev I bought right now the Pro Version. I hope this issue can be pushed on the queue of the todo list :)