mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Dropping schema should drop L2 caches #7090
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kiler129 on GitHub (Jan 15, 2023).
Feature Request
Summary
While working in a dev environment I use a quick script which essentially:
Since implemnting L2 in the application I noticed a strange behavior, where user data is stale. I tracked it to a simple fact that nothing in my "recreate test db" drops the caches. Adding the following to my script "solved" the problem:
Wouldn't it make sense to clear L2 caches on schema drop, or am I missing something?
@andreybolonin commented on GitHub (Feb 14, 2023):
+1