Problem/Motivation

With caching enabled the changes on the player settings hosting (self or cloud) do not have any effect over the player.

Proposed resolution

Add the config cache to the jw player render element. Invalidate the caches when the settings have changed.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

yongt9412 created an issue. See original summary.

johnchque’s picture

This seems to work.

johnchque’s picture

Status: Active » Needs review
johnchque’s picture

The last submitted patch, 4: fix_caching_when-2782645-4-test-only.patch, failed testing.

Berdir’s picture

Status: Needs review » Needs work

So far, so good.

As discussed, lets see if we can test that the library is also updated and provides the correct file now.

Berdir’s picture

The new file isn't added because it doesn't exist. But we can ensure that the cdn library is no longer added. Additionally, we don't need to invalidate the config cache tag because that happens automatically. We do need to invalidate library_info, and the correct place to do that is a config subscriber. Then it also works when the config is changed with drush, config import and so on.

The last submitted patch, 7: fix_caching_when-2782645-7-test-only.patch, failed testing.

  • Berdir committed 92013ea on 8.x-1.x
    Issue #2782645 by yongt9412, Berdir: Fix caching when changing settings
    
Berdir’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.