I`m developing a simple PHP application that is launched on an Apache2. I use APCu to speed up some parts of the application and use a special key for each part and package. The application is based on Composer and some time I need to update application scripts while the site is live.
I`m looking for a way to clear the cache if the version of the application is changed dynamically.