getDebugMode() == 1) { return $content; } // Cache whole compile output $cache_key = 'sacy-cache-'.md5($content); if ($cfg->getDebugMode() == 0) { $patched_content = getCache($cache_key); if ($patched_content) { return $patched_content; } } $tag_pattern = '#\s*<\s*T(?:\s+(.*))?\s*(?:/>|>(.*))\s*#Uims'; $tags = []; $aindex = 0; // first assembling all work. The idea is that, if sorted by descending // location offset, we can selectively remove tags. // // We'll need that to conditionally handle tags (like jTemplate's //