1) Store key/value cache using Memcached in a MySQL table.
2) Invalidate cache with one SQL statement.
"There are only two hard problems in Computer Science: cache invalidation and naming things." - Phil Karlton
kthnxbye.
Image may be NSFW.
Clik here to view.
PlanetMySQL Voting:
Vote UP /
Vote DOWN