Add different cache version for computer, phone and tablet
-
Good day, i am using Mobile_Detect class to identify computer, phone and tablet accessing my website: https://github.com/serbanghita/Mobile-Detect
I made few changes in each version hiding and showing elements for specific devices so now I need to generate three different caches.
I am trying usingthis filter in my functions.php
$mobile_groups = apply_filters( 'cached_mobile_groups', array( 'phone' => array( '\biPhone\b|\biPod\b', 'BlackBerry|\bBB10\b|rim[0-9]+', 'Samsung|SGH-I3...' ), 'tablet' => array('iPad|iPad.*Mobile','SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P...') ) );but it seems to do not generate different version in my wp-content/supercache folder (i see only index.html and index-mobile.html) Could you help me?
My questions are:
– do I have to write something different in my functions.php?
– am I using the filter correctly?Few note: I have flagged the Mobile device support in my supercache plugin options page.
Tnx
The topic ‘Add different cache version for computer, phone and tablet’ is closed to new replies.