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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -