1# Cache and Revisions Eraser
2
3**Warning:** The original project has been *deprecated*. This project is recommended to be used up to DokuWiki 2024-02-06b "Kaos".
4
5**Current Version: 1.6.7**
6
7This admin plug-in allows you to erase the entire cache and/or old wiki revisions.
8Only use this plug-in if you want to clean up your wiki or if the cache gets corrupted.
9I won’t take any resposibility for data lost due to wrong plug-in usage.
10Once old revisions are erased; there’s no way to restore them.
11
12Check for additional information at https://www.dokuwiki.org/plugin:cacherevisionseraser
13
14## What’s new?
15
16v1.6.7
17* A fork from [justburner/DokuWiki_CacheRevisionsEraser](https://github.com/justburner/DokuWiki_CacheRevisionsEraser)
18* Added Chinese language
19* Adjust the inheritance class of admin (According to the dokuwiki version 2024-02-06b "Kaos")
20
21v1.6.6
22* Added Ukrainian Language (Thanks Olexiy Zagorskyi)
23* Compatibility with Doodle & Doodle2 plugins (Thanks schplurtz)
24
25v1.6.5
26* Repacked zip correctly again (Only affected v1.6.4, Thanks David for the report)
27* Minor internal improvements
28
29v1.6.4
30* Updated French Language (Thanks Christophe Martin)
31* Updated German Language (Thanks Arno Puschmann)
32
33v1.6.3
34* Added Spanish Language (Thanks Bernabé García)
35* A few minor changes
36
37v1.6.2
38* Compatibility with Discussion Plugin (Thanks Micha Meyer)
39
40v1.6.1
41* Plugin now report the lastest version date into the Plugins Manager (Thanks Ilya Lebedev)
42* Updated Russian Language (Thanks Alexander Zubkov)
43
44v1.6.0
45* Changes into the design and HTML output (Valid XHTML 1.0 now)
46* Added a workaround for Plugins Manager without UTF-8 support for languages that contains UTF-8 characters.
47* Added report level (Detail on output information: Silent; Files only; All)
48* Added information of how many files & directories were deleted
49* Updated Italian Language (Thanks Diego Pierotto)
50* Updated Russian Language (Thanks Alexander Zubkov)
51* NOTE: This version have a new config file revision, you'll need to re-create config.php if you're upgrading.
52
53v1.5.4
54* Added a hyperlink in the plug-in main page to quickly visit the website (It will open a new window)
55* Display the plug-in version in the Administration tasks lists
56* Updated German Language (Thanks alex)
57
58v1.5.3
59* Bugfixes on writeconfigs function (Thanks Gary for the bug report)
60
61v1.5.2
62* User now can create 'configs.php' from the plug-in instead of accepting the default one (See FAQ)
63* Fixed a bug about some configurations in 'configs.php' (Thanks Robert Riebisch)
64* Updated Russian language (v1.5.1) (Thanks Alexander Zubkov)
65* Changes into some sentences inside the languages files
66* Discarded outdated language versions (they are still available as a patch)
67
68v1.5.1
69* Fixed old locks directory searching
70* Deleting files/directories will now show where they are being processed (cache, locks, meta or old-revis.)
71
72v1.5.0
73* Improved security (Check directories variables & configurations file checking)
74* Added debug list for checking some internal variables (must be enabled in configs)
75* Fixed meta directory variable
76* Improved files searching engine (Thanks Jeff)
77* Many others minor changes...
78
79v1.4.3
80* Fixed French language (v1.4.*) (From Flavien Viollet).
81* Added Brasil (Portuguese) language (v1.4.*).
82
83v1.4.2
84* Added French language (v1.4.*) (Thanks Flavien Viollet).
85* Renamed correctly the russian language filename (Although language isn't yet updated to v1.4.*).
86* Using $conf['savedir'] when $conf['datadir'] isn't available.
87* Converting files to UNIX format (line-break: 0x10).
88
89v1.4.1
90* Updated German language (v1.4.*) (Thanks konus).
91* Added Italian language (v1.4.*) (Thanks EndelWar).
92* Fixed "version" text that i’ve forgot to do multi-language support (Thanks EndelWar).
93* Fixed internal variables for paths (In case they aren’t the default ones) (Thanks Christopher Smith).
94* Added a "readme.txt" into the zip with same information as the wiki.
95
96v1.4
97* Added German language (v1.3.*) (Thanks konus).
98* Added Meta files & old lost page locks delection (suggestion from Kibi).
99* “Old lost page locks (*.lock)” will delete expired locks that aren’t deleted by DokuWiki due of creating a page and cancel it (generating a orphan .lock file).
100
101v1.3.1
102* Updated Russian language (v1.3.*) (Thanks Kibi).
103
104v1.3
105* Added configurations file “<dokuwiki directory>/lib/plugins/cacherevisionserase/configs.php” (request from Hoberion), you should edit it after the install:
106  * Position in admin menu (Default 67).
107  * Enable/Disable cache erase command (Default ON).
108  * Enable/Disable all old revisions erase command (Default OFF).
109  * Ask/Enable/Disable delection of cache of extensions:
110    * .i files (Backlinks and more???) (Default ASK).
111    * .xhtml files (HTML form of a page) (Default ASK).
112    * .js files (Cached Javascript) (Default ASK).
113    * .css files (Cached CSS-Sheet) (Default ASK).
114    * .media.* files (Cached media files) (Default ASK).
115    * All other unknown formats (Default ASK).
116    * Indexed-search files (Default ASK).
117* Thanks Hoberion for all issues.
118
119v1.2
120* Added Russian language (Thanks Kibi).
121* Fixed bug that didn’t delete cache file / revision page with “_dummy” text on it.
122* Fixed “data” path with accordance of security tips (Thanks Kibi).
123* Removed auth mechanism (Doku Wiki don’t allow non-admin users to access admins plug-ins anyway), no longer “Invalid auth mechanism” error is returned.
124
125v1.1
126* Joined the two plug-ins into a single one.
127* Added a basic GUI.
128* Plug-in will now ask the admin if he want to execute the command.
129* Absolute path of files are now hidden.
130
131v1.0
132* First release.
133
134## Available languages:
135* English
136  * Always updated
137* Portuguese
138  * Always updated
139* Brasil
140  * Always updated
141* Spanish
142  * Bernabé García, 2009-06-27 v1.6.*
143* Ukrainian
144  * Olexiy Zagorskyi, 2010-11-10 v.1.6.*
145* German
146  * Arno Puschmann, 2009-09-25 v1.6.*
147  * 2008-03-23 v1.6.0
148  * Alex, 2006-07-29 v1.5.4
149  * konus, 2006-07-09 v1.4.*
150* Italian
151  * Diego Pierotto, 2008-03-23 v1.6.*
152  * EndelWar, 2006-07-09 v1.4.*
153* Russian
154  * Alexander Zubkov, 2008-03-24 v1.6.*
155  * Kibi, 2006-07-03 v1.3.*
156* French
157  * Christophe Martin, 2009-09-13 v1.6.*
158  * Flavien Viollet, 2006-10-18 v1.4.*
159
160More translations are welcome.
161
162## Download & Installation
163
164Method 1:
165* Go to “Admin” and select “Manage Plugins”
166* In the URL Textbox, type one of the mirrors available in https://www.dokuwiki.org/plugin:cacherevisionseraser
167* Press “Download” and it will be automatically installed!
168* If you want to modify default configuration:
169  * Modify “<dokuwiki directory>/lib/plugins/cacherevisionserase/configs.php” configurations file with a text editor.
170* You can update in the future by pressing “Update” over the “cacherevisionserase” plug-in.
171
172Method 2:
173* Download the zip package
174* Unzip into ‘<dokuwiki directory>/lib/plugins/’ directory (you should end up with a ‘<dokuwiki directory>/lib/plugins/cacherevisionserase’ folder).
175* Modify “<dokuwiki directory>/lib/plugins/cacherevisionserase/configs.php” configurations file with a text editor.
176* That’s it! Plug-in is now installed and working!
177
178Please visit the website for more mirrors.
179
180## FAQ (Frequently Asked Questions)
181
182Check the official website for the FAQ at https://www.dokuwiki.org/plugin:cacherevisionseraser
183
184## Contact
185
186Plug-in coder: JustBurn
187
188Peoples who helped to make this project better:
189    Hoberion, Kibi, konus, EndelWar, Chris. Smith,
190    Flavien Viollet, Jeff, Alexander Zubkov,
191    Robert Riebisch, Gary, Alex (platinum4friends?),
192    Diego Pierotto, Micha Meyer, Bernabé García,
193    Christophe Martin, Arno Puschmann, David,
194    Olexiy Zagorskyi, schplurtz
195
196Any problems, bugs or improvements should be posted:
197* wiki @ https://www.dokuwiki.org/plugin:cacherevisionseraser
198* Git @ https://github.com/JustBurn/DokuWiki_CacheRevisionsEraser
199* Directly emailed to me.
200