1<?php 2 3use dokuwiki\Extension\Plugin; 4 5/** 6 * DokuWiki Plugin elasticsearch (Plugins Helper Component) 7 * 8 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 9 * @author Andreas Gohr <gohr@cosmocode.de> 10 * @author Anna Dabrowska <dabrowska@cosmocode.de> 11 */ 12class helper_plugin_elasticsearch_plugins extends Plugin 13{ 14 /** 15 * Update state of any changes for a page, 16 * e.g. plugins' data related to the page 17 * 18 * @param string $id 19 * @return bool 20 */ 21 public function updateRefreshState($id) 22 { 23 $refreshStateFile = metaFN($id, '.elasticsearch_refresh'); 24 return io_saveFile($refreshStateFile, ''); 25 } 26} 27