In our app we have some administartive webpages which show lots of accumulated statistics, for user interaction, sales, products overviews and etc. . Some content isvery heavy to compute and is outsourced to some partials. These in turn are then cached in redis. I can view the partial per access to the corresponding key:
ap redis.keys "views/admin*"
# => "views/partial/sales",
# => "views/partial/customer",
# => "views/partial/customer_exp",
my simple question, which i am unable to solve, is the folling: How can i update one of those partials. Is it possible to reload a single key from redis? Somehow the app should push an updated version of for example views/partial/sales
to redis but how can i trgger this re-rendering/computing?
Aucun commentaire:
Enregistrer un commentaire