Title: Multilanguage site with pre-path mode showes cached version
Last modified: September 1, 2016

---

# Multilanguage site with pre-path mode showes cached version

 *  Resolved [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/)
 * When using plugin on multilanguage site, for example, with qtranslate x plugin
   with these options enabled:
    – “Use Pre-Path Mode (Default, puts /en/ in front
   of URL)” – “Hide URL language information for default language. (SEO friendly.)”
 * you getting 503 on example.com/en/, but you don’t get 503 on root example.com
   at the same time. It need several times to refresh page before you get 503 on
   root example.com too.
 * Is this a “Maintenance Mode” plugin issue?
 * [https://wordpress.org/plugins/lj-maintenance-mode/](https://wordpress.org/plugins/lj-maintenance-mode/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [Lukas Juhas](https://wordpress.org/support/users/lukasneptun/)
 * (@lukasneptun)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/#post-7584236)
 * Hi there,
 * I might be worth testing it with all other plugins disabled – leaving just maintenance
   mode and see if that works. Let me know if you have still problems. It just might
   be some plugin incompatibility.
 * If it’s different plugin that is causing an issue – if you give me some feedback
   I’ll be happy to look in to it – to make plugin compatible.
 * Caching side of your problem might be either a different plugin that caching 
   your site, possibly server? This I’m quite sure is not MM plugin issue.
 * Thanks,
 * Lukas
 *  Thread Starter [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/#post-7584249)
 * I’m not using caching plugins or others right now. only MM and qt for testing.
   
   But I use cache headers in .htaccess
 * > <IfModule mod_expires.c>
   >  ExpiresActive On …
 * I will try to figure it out by my self, but for now, setting nocache_headers()
   right before wp_die() (in maintenance() function) seems to resolve issue.
 * **Update**: it doesnt work. will look forward..
 *  Plugin Author [Lukas Juhas](https://wordpress.org/support/users/lukasneptun/)
 * (@lukasneptun)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/#post-7584257)
 * I see, how about
 *     ```
       header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
       header("Cache-Control: post-check=0, pre-check=0", false);
       header("Pragma: no-cache");
       ```
   
 *  Thread Starter [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/#post-7584263)
 * Unfortunately, but no.
    I wrote to qt developers. Maybe they have some ideas.
 * The problem not just on seeing content on site root before refreshing page, but
   in huge amoung of ajax function, that users can launch from my site root. So 
   resolving this is quite important.
 *  Plugin Author [Lukas Juhas](https://wordpress.org/support/users/lukasneptun/)
 * (@lukasneptun)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/#post-7584269)
 * Cool, let me know how that goes,
 * If I’ll have a chance in upcoming days, I’ll try to set this up on my localhost
   and try a few things also.
 *  Thread Starter [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/#post-7584274)
 * Keep in mind, that this issue didn’t appear on localhost, but is on real host.
 *  Thread Starter [esemlabel](https://wordpress.org/support/users/esemlabel/)
 * (@esemlabel)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/#post-7584396)
 * Take a look here:
    [https://wordpress.org/support/topic/on-503-maintenance-can-reach-default-language-site-one-time](https://wordpress.org/support/topic/on-503-maintenance-can-reach-default-language-site-one-time)
 *  Plugin Author [Lukas Juhas](https://wordpress.org/support/users/lukasneptun/)
 * (@lukasneptun)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/#post-7584463)
 * Hey there,
 * Thank you for this,
 * I have added this on github – I cannot say when this will be implemented but 
   it’s in the pipeline.
 * [https://github.com/lukasjuhas/lj-maintenance-mode/issues/22](https://github.com/lukasjuhas/lj-maintenance-mode/issues/22)
 * Thanks, I’ll be closing this for now.
 * Lukas

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Multilanguage site with pre-path mode showes cached version’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/lj-maintenance-mode_c05e6b.svg)
 * [Maintenance Mode](https://wordpress.org/plugins/lj-maintenance-mode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lj-maintenance-mode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lj-maintenance-mode/)
 * [Active Topics](https://wordpress.org/support/plugin/lj-maintenance-mode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lj-maintenance-mode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lj-maintenance-mode/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Lukas Juhas](https://wordpress.org/support/users/lukasneptun/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/multilanguage-pre-path-mode-cache/#post-7584463)
 * Status: resolved