Plasencia
Account created on 16 February 2006, almost 19 years ago
#

Merge Requests

Recent comments

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

Committed. Thanks both for your patience :)

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

I think the module should not depend on other "ui" modules. It may be a stopper for people to choose using it.

IMO the fix here should be one of both:

* Try and provide the same functionality without requiring views ui
* Provide this functionality only when views ui is enabled. Otherwise show a notice such as "Enable views ui module in order to see X report"

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

Sorry it was not this module's fault but other module that adds 'url' cache context to all blocks.

Anyway I think getJson() at https://git.drupalcode.org/project/cookies/-/blob/1.2.x/src/Controller/S... probably doesn't need to cache by url.

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

Sorry for making more noise. Here's a simplified approach that rely on INFO command instead of CONFIG.

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

Great work. Thank both. Just created a branch and pushed your patches.

I don't like the code duplication, mainly because it needs to be keep updated. May you provide a patch to purge and remove the casting to integer?

Anyway I'll merge this. Thanks again!

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

jonhattan β†’ made their first commit to this issue’s fork.

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

Some thoughs:

1. Implement a wildcard purge based on the styles folder: `public://styles/*/filename-path` (not sure now but I think it may be generalized to use the default stream wrapper instead of hardcoding public://)

Note: wildcard purge is not available in all cache/cdn solutions, so it must be a configurable option and fallback to iterating all image styles.

2. I think asking to purge images in despite of they don't exists is better from a performance viewpoint, because a HEAD on inexistent resource in the cache will trigger a call to the backend... ending in a hit to the db server.

3. I think it should be a submodule and avoid mixing image specific stuff with file basic stuff. Perhaps

4. To check file is an image use `Image::isValid` as in:

$image_factory = \Drupal::service('image.factory');
$image = $image_factory->get($file->getFileUri());
if ($image->isValid()) {
 // ...
}
πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia
πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia
πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia
πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia
πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

jonhattan β†’ created an issue.

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia
πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

jonhattan β†’ created an issue.

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia
πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia
πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

jonhattan β†’ created an issue.

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

jonhattan β†’ changed the visibility of the branch project-update-bot-only to active.

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

jonhattan β†’ changed the visibility of the branch project-update-bot-only to hidden.

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

Reviewed and tested. It fixed the issue for us. Btw #3039000: Path aliases do not flush β†’ on it's own doesn't help.

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

Already fixed by committing other pending issues. Thanks!

πŸ‡ͺπŸ‡ΈSpain jonhattan Plasencia

I think we need a specific branch for drupal 10.1.x compatibility. In the meanwhile here's the patch updated for advagg 6.0.x.

Production build 0.71.5 2024