Okay. call me a vampire if you must but I've been searching all over the place for the html_output.php code mods for Ultimate SEO URLs
COMBINED WITH Page cache contribution - 'both' by Chemo
Google provided two code snippets one each for CRE & Zen, nothing found for standard OSC even though I've downloaded and searched a half dozen versions of Ultimate SEO URLs and Page cache.
In our case we've had Ultimate SEO URLs v2.1 running for 2 years, it's the page cache I'm trying to add now.
our existing html_output.php
// Ultimate SEO URLs v2.1
// The HTML href link wrapper function
function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
global $seo_urls;
if ( !is_object($seo_urls) ){
if ( !class_exists('SEO_URL') ){
include_once(DIR_WS_CLASSES . 'seo.class.php');
}
global $languages_id;
$seo_urls = new SEO_URL($languages_id);
}
return $seo_urls->href_link($page, $parameters, $connection, $add_session_id);
}
so (from instructions for Page Cache v1.5) of course there is nothing to "FIND"
global $request_type, $session_started;
And REPLACE it with this code
global $request_type, $session_started, $SID;
Find this code in tep_href_link():
if (isset($_sid)) {
$link .= $separator . $_sid;
}
And REPLACE it with this code:
if (!tep_session_is_registered('customer_id') && ENABLE_PAGE_CACHE == 'true' && class_exists('page_cache')) {
$link .= $separator . '<osCsid>';
} elseif (isset($_sid)) {
$link .= $separator . $_sid;
}
I'm sure I've searched everywhere and probably just missed it, but if anyone could be so kind I imagine I'm not the only idiot who can't find this to save my life.