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()
.
Comments
Post a Comment