Plugin Directory

Changeset 811678


Ignore:
Timestamp:
11/28/2013 02:43:25 AM (12 years ago)
Author:
pntrinh
Message:

fix mobile cache

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tr-cache-and-security/trunk/cache.php

    r787132 r811678  
    267267        ' -->';
    268268
     269    //need optimize js & css here $buffer
     270    if($tr_cache_options['optimize_js'] || $tr_cache_options['optimaze_css'])
     271    {
     272        //include(__DIR__.'/inc/tr_cache_class.php');
     273        //$buffer = 33;
     274        $cache_obj = Tr_Cache_Class::instance();
     275        $buffer    = $cache_obj->autoptimize_end($buffer);
     276    }
     277   
    269278    $data['html'] = $buffer;
    270279
     
    320329{
    321330    global $tr_cache_options;
    322 
     331   
     332    if(define('WP_MOBILE_SITE') && WP_MOBILE_SITE)
     333    {
     334        return '_mobile';
     335    }
    323336    if ($tr_cache_options['detect_mobile'] && $tr_cache_options['reject_agents']) {
    324337        $tr_cache_agent = strtolower($_SERVER['HTTP_USER_AGENT']);
Note: See TracChangeset for help on using the changeset viewer.