« Return to Thread: How to delete lots of related keys at once

Re: How to delete lots of related keys at once

by Iain Wade-2 :: Rate this Message:

Reply to Author | View in Thread

> So my question is, if we want to make sure our site is
> never stale, then we need to invalidate all 100 of
> those keys if someone inserts a new article. Now I'm
> thinking I need to do a search in my keys to find all
> article related keys and invalidate them.

An idea might be to determine the validity based on something other
than the existance of the cached data.

Keep track of the highest post id, or the most recent post timestamp,
and if the cached value returned is older than that, disregard the
info and refresh it.

--Iain

 « Return to Thread: How to delete lots of related keys at once