Closed (duplicate)
Project:
Beautify HTML
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2009 at 21:20 UTC
Updated:
22 Jun 2009 at 03:44 UTC
The value of $conf['cache'] should be considered.
If set to FALSE, beautify_set_cache() should not be called.
The CAPTCHA module disables page_cache, otherwise
the CAPTCHA jpg-image won't be regenerated and causes
a broken link.
function beautify_router($input) {
$processor = variable_get('beautify_method', 'builtin');
$mode = variable_get('beautify_mode', 2);
switch ($processor) {
case 'builtin':
$output = beautify_process($input, $mode);
break;
case 'htmlawed':
$output = beautify_htmlawed_process($input);
break;
case 'htmltidy':
$output = beautify_htmltidy_process($input);
break;
}
>>>
global $conf;
if ( $conf['cache'] ) {
beautify_set_cache($output);
}
<<<
print $output;
}
Comments
Comment #1
mikeytown2 commented#484756: Cache strategy