plugin:toucher
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:toucher [2012-09-16 13:30] – old revision restored (2012/09/14 16:27) ach | plugin:toucher [2022-07-29 23:37] (current) – Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
- | author | + | author |
email : nych.andriy@gmail.com | email : nych.andriy@gmail.com | ||
type : admin | type : admin | ||
- | lastupdate : 2012-08-16 | + | lastupdate : 2012-09-16 |
- | compatible : angua | + | compatible : Rincewind, |
depends | depends | ||
conflicts | conflicts | ||
Line 13: | Line 13: | ||
tags : admin, config, touch | tags : admin, config, touch | ||
+ | downloadurl: | ||
+ | bugtracker : https:// | ||
+ | sourcerepo : https:// | ||
+ | donationurl: | ||
---- | ---- | ||
+ | |||
+ | > This plugin [[https:// | ||
===== Installation ===== | ===== Installation ===== | ||
- | Download the '' | + | Search |
- | Refer to [[: | + | |
- | <file php admin.php> | + | ===== Examples/Usage ===== |
- | <?php | + | |
- | /** | + | |
- | * DokuWiki Plugin toucher (Admin Component) | + | |
- | * | + | |
- | * @license GPL 2 http:// | + | |
- | * @author Andriy Nych < | + | |
- | */ | + | |
- | // must be run within Dokuwiki | + | The only purpose of this plugin is to [[wp> |
- | if (!defined(' | + | This procedure invalidates DokuWiki cache files as described here: [[doku> |
- | if(!defined('DOKU_BASE')) define('DOKU_BASE', | + | |
- | if (!defined(' | + | |
- | require_once DOKU_PLUGIN.' | + | This is useful, for example, to reload CSS, JavaScript files after update, plugin/ |
- | class admin_plugin_toucher extends DokuWiki_Admin_Plugin { | + | ===== Configuration and Settings ===== |
- | function getInfo(){ | + | The plugin has only one setting: it can be set available only to [[doku> |
- | return array( | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ' | + | |
- | ); | + | |
- | } | + | |
- | function forAdminOnly() { | + | === Change Log === |
- | return true; | + | |
- | } | + | |
- | function touchFiles() { | + | Plugin was lying around here and there, even as a simple downloadable code block on this page. On 2012/09/16 it was moved to github so this date is its official birthday ((actually by moving it to GitHub I learned how to use git, but he is not aware of that so do not tell him)). |
- | touch(DOKU_CONF." | + | |
- | } | + | |
- | function handle() | + | {{rss>https:// |
- | $this->touchFiles(); | + | |
- | | + | |
- | function html() { | + | === Known Bugs and Issues === |
- | global $ID; | + | |
- | ptln('< | + | |
- | $this-> | + | |
- | ptln('< | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
- | Download | + | It seems to have a problem under PHP 7.2.19 on Ubuntu. |
- | Refer to [[: | + | |
- | ===== Usage ===== | + | if (!$INFO[isadmin]) { |
+ | |||
+ | to read | ||
- | - Goto '' | + | if (!$INFO['isadmin']) { |
- | - Enjoy | + | |
- | + | everything works okay. | |
- | ===== Development ===== | + | |
- | + | ||
- | === Change Log === | + | |
- | + | ||
- | * **2012-08-16** | + | |
- | | + | |
- | * **2012-09-14** | + | |
- | * added //getInfo// function to fix error message saying that '' | + | |
- | + | ||
- | === Known Bugs and Issues === | + | |
- | + | ||
- | None so far. | + | |
=== ToDo/Wish List === | === ToDo/Wish List === | ||
- | Do you have one? | + | Any ideas? |
===== Discussion ===== | ===== Discussion ===== | ||
- | From my experiments touching the '' | + | > Is it worth to include |
- | + | >> After 10 years of intense use of Toucher | |
- | * you install some plugin | + | |
- | | + | |
- | | + | |
- | In all these cases you have to empty browsed cache and sometimes do more magic to ensure that those files are actually loaded. | ||
- | Clicking the plugin link on the admin page has the same effect. At least this works for me. | ||
- | --- anandr // |
plugin/toucher.1347795004.txt.gz · Last modified: 2012-09-16 13:30 by ach