• Resolved Wajdi Jurry

    (@gentlex)


    Hi, I have WP Super Cache plugin installed and it works fine with the main language of the site. The issue that WP Super Cache does not cache pages in the second language.

    My site has these two main URLs:
    https://otomech.com/en
    https://otomech.com/ar

    The English version is cached finely, but the Arabic version is not cached at all, and the plugin does not cache it on preload.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @gentlex,

    I checked both the English and Arabic URLs of your website and can see that the WP-Super cache reports both versions of pages are being cached.

    Were you able to get the cache working properly? In case you are still having issues please share some more details about the problem and I’ll be happy to help.

    Best,

    Thread Starter Wajdi Jurry

    (@gentlex)

    Thanks for your reply @gaurav984

    What I know for now that WP Super Cache does it’s job perfectly when you manually visit the page in any language, it will cache it!

    But, when it starts to preload the content, it does not take into account any second language, that is the issue.

    How are the posts on your site in the second language done? Are they just ordinary records in your posts table?

    Thread Starter Wajdi Jurry

    (@gentlex)

    The translations are saved per string, not as a duplicated post.

    OK. That’s the reason those posts aren’t preloaded. The preload system doesn’t know about them. It reads from the posts table to get the URLs.

    What you could do, is write a simple PHP script to do something similar but replace “en” with “ar” in the URLs. The preload system just clears the cache of the post, then fetches it. Look at the function wp_cron_preload_cache in wp-cache.php for how it does it.

    Thread Starter Wajdi Jurry

    (@gentlex)

    Ok, thank you for your help, appreciated!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WP Super Cache not caching the second language’ is closed to new replies.