/**
  * Empties the gallery cache directory of content
  */
 public function flush_cache($gallery)
 {
     $cache = C_Cache::get_instance();
     $cache->flush_directory($this->object->get_cache_abspath($gallery));
 }
 function cache_action()
 {
     $cache = C_Cache::get_instance();
     $cache->flush_galleries();
     C_Photocrati_Transient_Manager::flush();
 }
 public function cache_action()
 {
     $cache = C_Cache::get_instance();
     $cache->flush_galleries();
     C_Photocrati_Cache::flush();
     C_Photocrati_Cache::flush('displayed_galleries');
     C_Photocrati_Cache::flush('displayed_gallery_rendering');
     C_Photocrati_Cache::flush('mvc');
 }