Hi all,
I am using a caching identifier based on the URL. But I'm getting
strange effects: when accessing a URL I see the cached version of
*another* page.
This is the code I'm using for the cache identifier.
$cache_identifier = ereg_replace("/", "_", $_SERVER['REQUEST_URI']);
$cache_identifier = ereg_replace(".", "_", $_SERVER['REQUEST_URI']);
$cache_identifier = preg_replace("/([^a-zA-Z0-9_-])/", '', $cache_identifier);
I added that last line because I was getting errors saying that the
cache identifier could only have a-z and _- characters.
Any thoughts on how to improve this would be very welcome :)
Thanks!
Peter
--
blog: http://poorbuthappy.com/ease/
work: http://petervandijck.com
free travel guides: http://poorbuthappy.com
US: (+1) 201 467-5511
Belgium: (+32) 03/325 88 70
Skype id: peterkevandijck