Support » Plugin: Super Page Cache for Cloudflare » Mobile Page Separated Cache

  • Resolved laserstore

    (@laserstore)


    Dear dev!
    I read in the pinned thread that it is possible to create a cached version separately and I “understand” the process described, however when I do, I can’t get the result. I still have the same cache loaded. It turns out that due to design and size issues, my theme allows me to create a separate page for mobile devices, which is very interesting.
    So if you access it on mobile first, the mobile cache ends up being loaded for desktop as well.
    I went to GIT and downloaded your code, placed it inside a specific folder in my theme (there was no asset folder in the example). I went to WP-Config and put the line indicated in the plugin’s FAQ. I also enabled Workers mode in the plugin.
    What could I have done wrong? Could it be the path inside the file? On my host the site folder is inside httpdocs, so I tried several paths, starting with /httpdocs/wp-content… or just /wp-content/… but in no case I was able to generate the pages separately. I just need the main page of the site with separate cache, maybe you have some tips.
    thank you very much for your help, your plugin is fantastic!

Viewing 4 replies - 31 through 34 (of 34 total)
  • Plugin Contributor iSaumya

    (@isaumya)

    I honestly have no idea why the cache is constantly getting expired. You need to check your CF account if you have some sort of cache expiry.

    Thread Starter laserstore

    (@laserstore)

    Hi @isaumya actually the cache is not expiring, just loading the wrong version. As I said before, if I clear the cache and access it from the desktop, this will be the version stored even when accessing it from a mobile device. If I clear the cache and access via mobile, this will be the stored version even if I access it from a desktop.
    Even though you see in the header there is a separation, the page version is not loading correctly. Anyway I appreciate your help again!

    Thread Starter laserstore

    (@laserstore)

    Hi @isaumya
    After a few days of putting aside the attempts, I decided to resume today to find a solution to the problem I described and I have the great news that I discovered the problem!
    The problem has always been that the everything cache rule was enabled and in worker mode it needs to be disabled, otherwise it overrides the worker and does not allow separation. With that, just leave it off and everything works perfectly!

    View post on imgur.com

    View post on imgur.com

    I really appreciate your effort in helping me and improving the gist code for mobile. Your support is unparalleled! Thank you!

    Plugin Contributor iSaumya

    (@isaumya)

    When you have the worker mode you are not supposed to have that cache everything rule. If that rule is automatically added by the plugin and you have not modified it in any ways then as soon as you enable the worker mode the plugin should automatically delete that rulke. If that rule was added manually then it needs to be removed. You cannot use the cache everything page rule + the worker mode at the same time.

Viewing 4 replies - 31 through 34 (of 34 total)
  • The topic ‘Mobile Page Separated Cache’ is closed to new replies.