Hi, some of my pages got a link in it using Nginx' SecureLink that timeout the link after a while. I want to use that link's timestamp as a condition to clear the page's cache.
$link = 'http://example.com/eeeee?securelink=Oi2BNsefGsF3RiEpGLI7cg&e=1473059038'; $timestamp = substr($link, strrpos($link, '=') + 1);
if ($timestamp <= time()) {
// do something to clear the cache;
};
Is there a function to use in this type situations?