why is my plugin not seeing the updated serializer code?
i’m in the middle of a plugin change and i’m stuck.
i updated a serializer, restarted the app, and i still seem to be getting the old output. am i missing a cache step, or is there a better place to hook this kind of change so it actually shows up on the topic page?
Comments
-
If the serializer lives in a plugin, make sure the class is being reloaded from the plugin path you expect. In practice, the fastest check is to confirm the file name and class name match, then hard refresh the browser and restart the app if you are working outside the usual dev watch flow. If the output still looks stale, move the logic into a smaller serializer override or an add_serializer_attribute so you can see exactly which layer is winning.
0 -
i had a similar issue when two overrides were touching the same field. checking the plugin order helped me spot it.
0