php - MySQL to refresh memcached -


we have web application running on lamp stack, application depends on various services. these services gets data cache (memcached) being refreshed using cron (from mysql). cron processes running every 5 mins.

in approach can not serve data updated cache getting refreshed every 5 mins.

is there mechanism exists can trigger cache refresh data gets updated in mysql?

i don't know if best solution, can create mysql trigger gets executed on insert/update/delete.

inside mysql trigger execute udf. udf can execute php script using sys_exec().

read triggers

read udf

read using sys_exec() , more


Comments

Popular posts from this blog

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -