Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Always decorate Symfonys config_cache_factory service with WfdMetaConfigCacheFactory (Case 171239) #44

Closed
wants to merge 1 commit into from

Conversation

MalteWunsch
Copy link
Member

@MalteWunsch MalteWunsch commented May 15, 2024

The WfdMetaConfigCacheFactory creates a cache that checks its freshness by:

  1. checking the "inner" cache with Symfony means
  2. if that is still fresh, the WfdMetaConfigCache queries the wfd_meta table in regard to the registered wfdMeta-resources like a DoctrineEntityClassResource for a Page entity.

The decoration only taking place when always_expire_wfd_meta_resources was not set effectively disabled checking the wfdMeta-resources, at least in production environments. (The fact that one probably shouldn't use this configuration setting in production is another story.)

This should not break anything, as the decoration already happened always, before the always_expire_wfd_meta_resources config setting was introduced in c7a2e2b.

Resolves #43

…figCacheFactory

The WfdMetaConfigCacheFactory creates a cache that checks its freshness by:
1. checking the "inner" cache with Symfony means
2. if that is still fresh, the WfdMetaConfigCache queries the wfd_meta table in regard to the registered wfdMeta-resources like a DoctrineEntityClassResource for a Page entity.

The decoration only taking place when `always_expire_wfd_meta_resources` was not set effectively disabled checking the wfdMeta-resources, at least in production environments. (The fact that one probably shouldn't use this configuration setting in production is another story.)

This should not break anything, as the decoration already happened always, before the `always_expire_wfd_meta_resources` config setting was introduced in c7a2e2b.
@MalteWunsch MalteWunsch requested a review from mpdude May 15, 2024 10:50
@MalteWunsch
Copy link
Member Author

MalteWunsch commented May 15, 2024

@mpdude I did not find any contraindications for this fix (I did not clarify under which circumstances the always_expire_wfd_meta_resources has worked before).

If accepted, I'd tag this as 3.19.3, merge it into to master and then tag the merge commit as 4.0.3.

@MalteWunsch
Copy link
Member Author

Superseded by (tbd)

@MalteWunsch MalteWunsch deleted the 3.19.x branch May 15, 2024 12:28
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Always use WfdMetaConfigCacheFactory to enable checks of wfd-meta-ConfigCacheResourceCheckers? (Case 171239)
1 participant