• Hello,

    I write you because I need some help.
    I try to use your plugin, and I use Any Mobile Theme Switcher.
    I use the rewrite mod to serve the cache.

    The plugin work fine with any computer, but I have issue with mobile device.
    The mobile user are redirected to the good theme, no issue with that.
    The cache file are created with file like index-mobile.html.
    But, the cache doesn’t detect when the file already exist, and continu to recreate the cache each time someone try to access some page.

    What can I do to change this ? Probably some config file or variable to change but where ?
    Or any idea where the check code is ? Maybe I can try to add the -mobile to the filename to avoid this cache to be created each time.

    Thx if someone can help me !

    https://wordpress.org/plugins/wp-super-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter LtSich

    (@ltsich)

    Just to give some extra logs
    wp_cache_check_mobile:
    mobile browser detected:
    supercache dir: (the good directory)
    wp_cache_get_cookies_values: return:
    No wp-cache file exists. Must generate a new one. (but the file exist !)

    and after that more logs that the file is created…

    Thread Starter LtSich

    (@ltsich)

    I continu to search any solution with that problem.
    If I use the PHP Caching I have the same issue with my computer or with my mobile phone.
    WP Super Cache build the cache, but don’t see that the file already exist and rebuild a new one.
    This make the cache useless and worth, give more work to the site.

    Always the same issue with debug activated : No wp-cache file exists. Must generate a new one.

    After some search it seem that the value of $cache_file is not set… Then the check don’t work…

    This value is used in : wp-cache-phase1.php at line 156…

    I’m the only one with that issue ? Does someone else have make extended check ?
    Because with that issue I have always sql query on my database, the cache is just not used…
    The only way to make it work is for computer (not mobile device) with rewrite rules… Because the PHP check don’t work…

    Programming is not my job, any help to find how to give the good value to $cache_file ?

    And just to say, $filename and $file are correctly defined…

    Thread Starter LtSich

    (@ltsich)

    I answer to myself, if someone read this board.
    I have find the issue.
    I use personnal permalink. And in my configuration there was no / at the end of the structure…. I have just add the / at the end and now the cache work fine.

    Thx for this plugin.

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

The topic ‘Super Cache Any Mobile Theme Switcher’ is closed to new replies.