[eluser]haydenp[/eluser]
Thanks for the reply FuzzyOne.
That
would be an option ... but personally I'm not overly keen to resort to making "wholesale" changes just to get Output.php to do what I want at this stage. The change I need to make to Output.php is so minor that I'd hate to make changes to other libraries etc.
Your idea is on my "short list" if all else fails. Thanks.
What I'm trying to achieve here is:
Each page is written to the cache and read from the cache based on a unique page name. This unique page name is based on the md5() hash of the full pages url. I need to take this a level further and add an extra level of "uniqueness" by adding an ID to the unique page name. The ID I would like to add is held in the session.
Currently _write_cache() and _display_cache() use the following to generate their unique page name
Code:
$unique_page_name = md5('the full URI here');
What I need is ...
Code:
$unique_page_name = $CI->session->userdata('the unique id I would like to add') . '-' . md5('the full URI here');
Note: In _write_cache() one does have access to "$CI =& get_instance();" so I can get to my session vars, but it is not available in _display_cache()