ruby on rails - Caching scheme for two sites that share DB -
let's assume have 2 sites around 1 db. first based on fatfreecrm , handles business logic, let's call site_1 , second 1 based on radiantcms , handles presentation logic. let's call site_2 of pages in radiantcms use models fatfreecrm (mostly show them, not modify). , fatfreecrm able add/remove/modify instances of models.
the problem want these pages in radiantcms cached. can't expire cache directly fatfreecrm.
what best cache strategy case?
thank you.
i suggest creating api on radiantcms allows expire cached pages. example:
site_1.com/api/expire/sldfj2389283kd
you call expire action fatfreecrm anytime want expire key or collection of keys, , perform actual cache expiration on radiantcms.
Comments
Post a Comment