Philip P. Ide

Author, programmer, science enthusiast, half-wit.
Life is sweet. Have you tasted it lately?

User Tools

Site Tools


blog:articles:software:toucher2

Toucher2

This is a Dokuwiki plugin that revived (original: toucher), it having been not updated in twelve years and officially marked as dead.

What toucher2 does is 'touch'1) the dokuwiki configuration file. This has the effect of invalidating the cache.

Dokuwiki builds pages from various sources - the general layout template, the actual page content etc. - and then caches them. Sometimes an update occurs that isn't visible, because the page is still being served from the cache. Invalidating the cache forces the page to be rebuilt.

The original toucher plugin invalidated the cache every time a page was created or updated - provided the page was created/updated by a manager or admin. It also had the ability via configuration, to limit that to just admins. There is also an option from the admin menu to do an ad-hoc touch.

I have now updated toucher2:

  1. the original code didn't actually enforce the configuration options
  2. the new code can also be configured to only allow touching via the admin menu

The code now properly enforces the touching only occurs when managers (if config option allows) or admins trigger a touch when creating/updating a page.

1)
touching updates the 'last modified' date on the file
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
blog/articles/software/toucher2.txt · Last modified: 2024/08/02 12:09 by Phil Ide

Except where otherwise noted, content on this wiki is licensed under the following license: Copyright © Phil Ide
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki