| @@ 67-83 (lines=17) @@ | ||
| 64 | { |
|
| 65 | $type = 'apc'; |
|
| 66 | } |
|
| 67 | else if(substr($info->use_object_cache, 0, 8) == 'memcache') |
|
| 68 | { |
|
| 69 | $type = 'memcache'; |
|
| 70 | $url = $info->use_object_cache; |
|
| 71 | } |
|
| 72 | else if($info->use_object_cache == 'wincache') |
|
| 73 | { |
|
| 74 | $type = 'wincache'; |
|
| 75 | } |
|
| 76 | else if($info->use_object_cache == 'file') |
|
| 77 | { |
|
| 78 | $type = 'file'; |
|
| 79 | } |
|
| 80 | else if($always_use_file) |
|
| 81 | { |
|
| 82 | $type = 'file'; |
|
| 83 | } |
|
| 84 | } |
|
| 85 | else if($target == 'template') |
|
| 86 | { |
|
| @@ 85-100 (lines=16) @@ | ||
| 82 | $type = 'file'; |
|
| 83 | } |
|
| 84 | } |
|
| 85 | else if($target == 'template') |
|
| 86 | { |
|
| 87 | if($info->use_template_cache == 'apc') |
|
| 88 | { |
|
| 89 | $type = 'apc'; |
|
| 90 | } |
|
| 91 | else if(substr($info->use_template_cache, 0, 8) == 'memcache') |
|
| 92 | { |
|
| 93 | $type = 'memcache'; |
|
| 94 | $url = $info->use_template_cache; |
|
| 95 | } |
|
| 96 | else if($info->use_template_cache == 'wincache') |
|
| 97 | { |
|
| 98 | $type = 'wincache'; |
|
| 99 | } |
|
| 100 | } |
|
| 101 | ||
| 102 | if($type) |
|
| 103 | { |
|