FOSSology  4.4.0
Open Source License Compliance by Open Source Software
core-debug-flush-cache.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2008-2013 Hewlett-Packard Development Company, L.P.
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
8 define("TITLE_debug_flush_cache", _("Flush Cache"));
9 
15 {
16  function __construct()
17  {
18  $this->Name = "debug_flush_cache";
19  $this->Title = TITLE_debug_flush_cache;
20  $this->MenuList = "Help::Debug::Flush Cache";
21  $this->DBaccess = PLUGIN_DB_ADMIN;
22  parent::__construct();
23  }
24 
31  public function Output()
32  {
34  return _("All cached pages have been removed.");
35  }
36 
37 }
38 $NewPlugin = new debug_flush_cache;
39 $NewPlugin->Initialize();
This is the Plugin class. All plugins should:
Definition: FO_Plugin.php:57
Plugin to flush all cached pages.
__construct()
base constructor. Most plugins will just use this
Output()
Purge all cached pages.
ReportCachePurgeAll()
Purge all records from the report cache.
#define PLUGIN_DB_ADMIN
Plugin requires admin level permission on DB.
Definition: libfossology.h:39