Quantcast
Channel: EasyEngine Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 12639

A way to auto clear a page's cache based on some conditional statements?

$
0
0

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?


Viewing all articles
Browse latest Browse all 12639

Trending Articles