You are here

function facebook_tracking_pixel_clear_cache in Facebook Tracking Pixel 8

Same name and namespace in other branches
  1. 7 facebook_tracking_pixel.module \facebook_tracking_pixel_clear_cache()

Function to call from CRUD operations to clear caches.

6 calls to facebook_tracking_pixel_clear_cache()
facebook_tracking_pixel_base_codes_edit_form_submit in ./facebook_tracking_pixel.admin.inc
Submit handler for the base code edit form.
facebook_tracking_pixel_base_code_delete in ./facebook_tracking_pixel.module
Remove a base code by the FBID number.
facebook_tracking_pixel_path_add_form_submit in ./facebook_tracking_pixel.admin.path.inc
Submit handler to add a new path based event.
facebook_tracking_pixel_path_delete_form_submit in ./facebook_tracking_pixel.admin.path.inc
Delete submit handler for the delete form.
facebook_tracking_pixel_path_edit_form_submit in ./facebook_tracking_pixel.admin.path.inc
Submit handler for path edit form.

... See full list

File

./facebook_tracking_pixel.module, line 777
facebook_tracking_pixel.module Facebook Tracking Module.

Code

function facebook_tracking_pixel_clear_cache() {
  cache_clear_all('*', 'cache_page', TRUE);

  // Clear views cache if available.
  if (module_exists('views')) {
    cache_clear_all('*', 'cache_views', TRUE);
    cache_clear_all('*', 'cache_views_data', TRUE);
  }

  // Trigger reloading the CSS and JS file cache in AdvAgg, if available.
  if (module_exists('advagg')) {
    module_load_include('inc', 'advagg', 'advagg.cache');
    advagg_push_new_changes();
  }
}