Skip to content

[TASK] Fix flush-all endpoint missing side effects #35198

@hassandotcms

Description

@hassandotcms

Description

Modify the existing DELETE /v1/caches/provider/{provider}/flush endpoint in CacheResource.java to add missing side effects. Currently it only calls MaintenanceUtil.flushCache() but the JSP Struts action also resets permission references and reloads PushPublishing filters after flushing all caches.

Acceptance Criteria

  • After calling MaintenanceUtil.flushCache(), endpoint must also call APILocator.getPermissionAPI().resetAllPermissionReferences()
  • After calling MaintenanceUtil.flushCache(), endpoint must also call DotInitializer.class.cast(APILocator.getPublisherAPI()).init() to reload PushPublishing filters
  • Existing behavior (flushing all caches) must not change
  • Existing response format must not change

Priority

None

Additional Context

  • Current implementation: CacheResource.java line 338, flushAll() method
  • Only consumer is a Postman test collection — no breaking change risk
  • The Struts action (ViewCMSMaintenanceAction._flush()) always calls resetAllPermissionReferences() and conditionally reloads PushPublishing filters — the REST endpoint was missing both

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions