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