-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue: Cached metadata/generated files #158
Comments
I also clear opcache at the end of each deployment. Never ran into any problems with it. Are you sure you are clearing cli AND web opcache? |
@PascalBrouwers we flush the web opcache using scripts provided by our (magento specialist) hosting, cli opcache clears after each cli command finishes running, so flushing it manually isn't ever necessary |
hmm, are you maybe caching the backend with Redis and not using a different cache prefix on your deployment? |
@PascalBrouwers interesting suggestion, how do you go about doing this? Doesn't look like there's a documented way of changing the id_prefix by CLI, unless you set it up as an env var? |
See #151 (comment) how I do it using capistrano. |
@PascalBrouwers interesting thanks, could changing the cache key stop old entries from being flushed + cause Redis (or whatever caching system is being used) to fill up? |
That's you redis configuration. I suggest using an eviction policy of allkeys-lru or allkeys-lfu. |
I've been seeing an issue for a while now that I think relates to OPCache and generated metadata. It's not easy to replicate, but usually clears on subsequent deployments.
There are two scenarios I have seen:
I think this is related to OPCaching of generated files, we use the cap opcache tool but this only clears opcache at the end of each deployment
The text was updated successfully, but these errors were encountered: