Advertisement
urosevic

Headway v3.8.3 Fix caching bug (Shared Layout not applied)

Sep 5th, 2015
172
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- /wp-content/themes/headway-3.8.3/library/common/compiler.php    Sat Sep 05 23:05:34 2015
  2. +++ /wp-content/themes/headway/library/common/compiler.php      Sat Sep 05 22:57:26 2015
  3. @@ -15,6 +15,10 @@
  4.         add_action('headway_visual_editor_assign_template', array(__CLASS__, 'signal_flush_cache'));
  5.         add_action('headway_visual_editor_unassign_template', array(__CLASS__, 'signal_flush_cache'));
  6.  
  7. +       add_action('publish_post', array(__CLASS__, 'signal_flush_cache'));
  8. +       add_action('edit_post', array(__CLASS__, 'signal_flush_cache'));
  9. +       add_action('delete_post', array(__CLASS__, 'signal_flush_cache'));
  10. +
  11.         add_action('headway_switch_skin', array(__CLASS__, 'signal_flush_cache'));
  12.         add_action('switch_theme', array(__CLASS__, 'signal_flush_cache'));
Advertisement
RAW Paste Data Copied
Advertisement