php - How to make a cache solution for a shared resource in laravel? -


i new caching , problem have in hand. conventional caching understand works in way resource cached when retrieved , cache used later on. on creation, updation , deletion, cache deleted made new 1 next time.

in case of resource owned users, user id included in cache key somehow not clash cache of other users.

now, problem unique. have resource shared ie of owned individual users of owned all.

so now, when creation, updation , deletion happens, have delete cache users because might affected result sets since of items shared. , cache users have recalculated @ next retrieval particular user makes pretty inefficient.

has encountered similar problem , can tell me how go around this?


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -