webgrafia / ginger

Wordpress plugin to make website compliant with EU Cookie Policy, with opt-in feature
18 stars 7 forks source link

Fix script not restored when cache is enabled #36

Open Filoz opened 6 years ago

Filoz commented 6 years ago

Fix #24 When cache option is set to yes and the banner is accepted, some script aren't restored.

The problem was due by this line: if (isset($option_ginger_general['ginger_cache']) && $option_ginger_general['ginger_cache'] == 'no') return;

If the cache option was set to "yes", the execution continue to ginger_parse_dom also when the banner was accepted, why?