Esempio n. 1
0
 /**
  * Handles AJAX request from control panel accessory to send purge request to Varnish
  */
 public function process_purge_request()
 {
     if (AJAX_REQUEST) {
         $EE =& get_instance();
         $EE->load->helper('varnish');
         $site_url = $EE->config->item('varnish_site_url');
         $port = $EE->config->item('varnish_port');
         send_purge_request($site_url, $port);
     }
 }
Esempio n. 2
0
 /**
  * Sends purge request to Varnish when registered EE hooks are triggered
  *
  * @param 
  * @return 
  */
 public function send_purge_request()
 {
     $this->EE->load->helper('varnish');
     send_purge_request($this->site_url, $this->port);
 }