Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

MySQL DB replication hook to clean local cache

$
0
0

I have the app a MySQL DB is a slave for other remote Master DB. And i use memcache to do caching of some DB data.

My slave DB can be updated if there are updates in a Master DB. So in my application i want to know when my local (slave) DB is updated to invalidate related cached data and display fresh data i got from master.

Is there any way to run some program when slave mysql DB is updated ? i would then filter q query and understand if i need to clean a cache or not.

Thanks


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>