• Resolved laluce2020

    (@laluce2020)


    Hi Jose,

    I use the SG Optimizing plugin for caching and it does not distinguish from mobile and desktop. Will the plugin work if I exclude my mobile pages from being cached? If yes, which URL do I have to specify?

    Many thanks,

    Marco

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jose Mortellaro

    (@giuse)

    Hi @laluce2020

    if you can exclude the mobile pages from being cached, it will work, but those pages may be slower because they will not be cached.

    The URLs that you have to use are the URLs of the pages that have a mobile version. The public URL of a page that has a mobile version is always the same.

    If for example, the page https://yourdomain.com/sample-page/ has a mobile version, you need to use the URL https://yourdomain.com/sample-page/. The URL https://yourdomain.com/sample-page-mobile/ exists only in the backend for authorized users. All other users don’t see that URL.

    I hope it’s clear.

    Thread Starter laluce2020

    (@laluce2020)

    Good morning Jose,

    Thank you for the quick response.
    It is clear, I was wondering if it was possible to exclude from caching only the mobile version of the page and not the desktop one.
    Is there any way to show mobile page only on phones and keep the desktop version on tablets?

    Thank you

    Plugin Author Jose Mortellaro

    (@giuse)

    Hi @laluce2020

    you are welcome.

    I don’t know if you can exclude from caching only the mobile version. This is something that is managed by SG Optimize in your case.

    But you can try this workaround:

    – Install Freesoul Deactivate Plugins to deactivate SG Optimize on the mobile version.
    – Clear the cache of SG Optimize

    Deactivating SG Optimize on the mobile version of the page, it will not generate any cache when that page is visited on mobile.
    It’s important you clear the cache, because once the cache is created, even tough you disable SG Optimize on mobile, the cache will be called in any case, because it’s called before the standard plugins.

    To keep the desktop version on the tablet you would need the PRO version, which is still under development, but you can easily reach the same goal by adding this line of code in wp-config.php:

    define( 'SCFM_EXCLUDE_TABLETS',true );

    Add that line before the comment /* That’s all, stop editing! Happy blogging. */

    I hope it helps.

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

The topic ‘Separate cache version Desktop & Mobile’ is closed to new replies.