memcachier

When redeploying app on heroku PHP sessions disappear

末鹿安然 提交于 2020-02-06 06:51:06
问题 I have a Symfony app on Heroku which uses sessions (eg. to keep user logged in). I have configured memcachier (output of heroku addons command): Add-on Plan Price ───────────────────────────────── ──── ───── memcachier (memcachier-flat-XXXX) dev free I have also created file .user.ini in the root of my project with the following contents: session.save_handler=memcached memcached.sess_binary=1 session.save_path="PERSISTENT=myapp_session ${MEMCACHIER_SERVERS}" memcached.sess_sasl_username=$

Improving Rails.cache.write by setting key-value pairs asynchronously

假装没事ソ 提交于 2019-12-12 21:08:20
问题 I am currently thinking about improving the performance of Rails.cache.write when using dalli to write items to the memcachier cloud. The stack, as it relates to caching, is currently: heroku, memcachier heroku addon, dalli 2.6.4, rails 3.0.19 I am using newrelic for performance monitoring. I am currently fetching "active students" for a given logged in user, represented by a BusinessUser instance, when its active_students method is called from a controller handling a request that requires a