Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
cache_manager_management.inc
1 <?php
2 
19 require_once SQ_INCLUDE_PATH.'/asset_management.inc';
20 
32 {
33 
34 
42  {
43  Asset_Management::__construct($pm);
44 
45  $this->vars = Array(
46  'enabled' => Array(
47  'added' => '0.1',
48  'type' => 'boolean',
49  'default' => FALSE,
50  'description' => 'Turns caching on or off',
51  'parameters' => Array('allow_empty' => FALSE),
52  ),
53  'public_caching' => Array (
54  'added' => '0.1',
55  'type' => 'boolean',
56  'default' => FALSE,
57  'description' => 'Turns caching on or off for not logged in users',
58  'parameters' => Array('allow_empty' => FALSE),
59  ),
60  'permission_caching' => Array (
61  'added' => '0.1',
62  'type' => 'boolean',
63  'default' => FALSE,
64  'description' => 'Turns read/write/admin level caching on or off',
65  'parameters' => Array('allow_empty' => FALSE),
66  ),
67  'group_caching' => Array (
68  'added' => '0.1',
69  'type' => 'boolean',
70  'default' => FALSE,
71  'description' => 'Turns group level caching on or off',
72  'parameters' => Array('allow_empty' => FALSE),
73  ),
74  'num_cache_dirs' => Array(
75  'added' => '0.1',
76  'type' => 'int',
77  'default' => '20',
78  ),
79  'expiry' => Array(
80  'added' => '0.1',
81  'type' => 'int',
82  'default' => '86400',
83  ),
84  'type_codes' => Array(
85  'added' => '0.1',
86  'type' => 'serialise',
87  'default' => Array(),
88  ),
89  'non_cachable_urls' => Array(
90  'added' => '0.1',
91  'type' => 'serialise',
92  'default' => Array(),
93  ),
94  'browser_cache_expiry' => Array(
95  'added' => '0.1',
96  'type' => 'int',
97  'default' => '',
98  'allow_negative' => FALSE,
99  'allow_empty' => TRUE,
100  ),
101  'cache_storage_type' => Array(
102  'added' => '0.3',
103  'type' => 'text',
104  'default' => 'default',
105  'description' => 'The method for storing cached data',
106  ),
107  'root_nodes' => Array(
108  'added' => '0.2',
109  'type' => 'serialise',
110  'default' => Array(),
111  ),
112 
113  'non_cacheable_header_urls' => Array(
114  'added' => '0.4',
115  'type' => 'serialise',
116  'default' => Array(),
117  'description' => 'Root URLs to send cacheable header regardless of other Matrix settings',
118  ),
119 
120  'user_cacheable_header_urls' => Array(
121  'added' => '0.4',
122  'type' => 'serialise',
123  'default' => Array(),
124  'description' => 'Root URLs to send user cacheable header regardless of other Matrix settings',
125  ),
126 
127  'cacheale_header_protocol' => Array(
128  'added' => '0.4',
129  'type' => 'selection',
130  'default' => 'http',
131  'description' => 'Whether to send cacheable headers over http/https/both',
132  'parameters' => Array(
133  'multiple' => FALSE,
134  'allow_empty' => FALSE,
135  'options' => Array(
136  'http' => 'HTTP only',
137  'https' => 'HTTPs only',
138  'both' => 'Both',
139  ),
140  ),
141  ),
142  'cache_control_http' => Array(
143  'added' => '0.4',
144  'type' => 'selection',
145  'default' => 'public',
146  'description' => 'Cache control level (public/private) for http',
147  'parameters' => Array(
148  'multiple' => FALSE,
149  'allow_empty' => FALSE,
150  'options' => Array(
151  'public' => 'Public',
152  'private' => 'Private',
153  ),
154  ),
155  ),
156  'cache_control_https' => Array(
157  'added' => '0.4',
158  'type' => 'selection',
159  'default' => 'public',
160  'description' => 'Cache control level (public/private) for https',
161  'parameters' => Array(
162  'multiple' => FALSE,
163  'allow_empty' => FALSE,
164  'options' => Array(
165  'public' => 'Public',
166  'private' => 'Private',
167  ),
168  ),
169 
170  ),
171 
172 
173  );
174 
175  }//end constructor
176 
177 
178 }//end class
179 
180 ?>