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

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -