view MoinMoin/scripts/ @ 35:f0af060fb82b

making people choose the right approach to page_front_page imported from: moin--main--1.5--patch-36
author Thomas Waldmann <>
date Sun, 25 Sep 2005 14:45:38 +0000
parents 77665d8e2254
children 236f561fa21f
line wrap: on
line source
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
    MoinMoin - clear the cache

    @copyright: 2005 by Thomas Waldmann (MoinMoin:ThomasWaldmann)
    @license: GNU GPL, see COPYING for details.

    globally delete cache files in data/pages/PageName/cache/ directories
    First change the base path and fname to match your needs.
    Then do ./

    You will usually do this after changing MoinMoin code, by either upgrading
    version, installing or removing macros. This often makes the text_html
    files invalid, so you have to remove them (the wiki will recreate them
    text_html is the name of the cache file used for compiled pages formatted
    by the wiki text to html formatter,

base = "." # location of data directory
fname = 'text_html' # cache filename to delete

import sys, os

pagesdir = os.path.join(base,'data','pages')
for f in os.listdir(pagesdir):
    cachefile = os.path.join(pagesdir,f,'cache',fname)