Skip to content
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

Always return location IDs from SwitchableHttpCachePurger::purge #131

Merged
merged 1 commit into from
Dec 25, 2017

Conversation

emodric
Copy link
Collaborator

@emodric emodric commented Dec 22, 2017

This fixes clearing view caches in legacy admin interface running in legacy_mode: false, e.g. Netgen Admin UI.

eZ Publish Legacy expects that content/cache events always return location
IDs they were given (https://github.com/ezsystems/ezpublish-legacy/blob/master/kernel/classes/ezcontentcachemanager.php#L772).

In eZ Publish kernel 6.x, there was an InstantCachePurger that did this
(https://github.com/ezsystems/ezpublish-kernel/blob/6.13/eZ/Publish/Core/MVC/Symfony/Cache/Http/InstantCachePurger.php#L61-L66),
but in 7.0 (and presumably with 6.x with new HttpCacheBundle turned on),
this does not happen.

So here, we make sure that location IDs are always returned, no matter what.

@emodric emodric requested a review from andrerom December 22, 2017 14:39
@ezsystems ezsystems deleted a comment from ezrobot Dec 22, 2017
@emodric emodric changed the base branch from master to 1.4 December 24, 2017 11:40
@emodric emodric changed the base branch from 1.4 to master December 24, 2017 11:40
eZ Publish Legacy expects that `content/cache` events always return location
IDs they were given (https://github.com/ezsystems/ezpublish-legacy/blob/master/kernel/classes/ezcontentcachemanager.php#L772).

In eZ Publish kernel 6.x, there was an InstantCachePurger that did this
(https://github.com/ezsystems/ezpublish-kernel/blob/6.13/eZ/Publish/Core/MVC/Symfony/Cache/Http/InstantCachePurger.php#L61-L66),
but in 7.0 (and presumably with 6.x with new HttpCacheBundle turned on),
this does not happen.

So here, we make sure that location IDs are always returned, no matter what.
@emodric emodric changed the base branch from master to 1.4 December 24, 2017 11:44
@andrerom andrerom merged commit 1fd473e into 1.4 Dec 25, 2017
@andrerom andrerom deleted the emodric-patch-1 branch December 25, 2017 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants