A wiki topic and attachment store using the RCS revision control system
Foswiki 2.0 and later only
This is the modern implementation of the classic Foswiki RCS based store. It has been moved into a contrib as other store implementations have emerged, and the RCS store's status as "the one and only" store implementation has been eroded.
Trash web should be be cleared periodically, by archiving (saving) the text and RCS files if required (recommended), then deleting them from the
This can only be done from on the server, not through the browser.
Be sure to recreate the empty TrashAttachments after you remove it.
Since simple FTP access to the
directory is all that is required for maintenance, it is possible to grant
admin privileges to multiple users, while strictly limiting server access.
The RCS Store can be quite resource intensive, especially for topics with large numbers of revisions, or for large binary files, where rcs is unable to caluculate a difference for the change.
The RCSStoreContrib implements two versions of RCS based stores:
Each of the RCS implementations have their own strengths, but neither is ideal. Foswiki 2.0 now ships with a new PlainFileStoreContrib. This is the default
for new Foswiki sites, and comes with migration tools to convert away from RCS based stores.
- A Perl wrapper for the system "rcs" tools. It uses "fork" to run the system
rcs commands under the control of Foswiki. It is generally not recommended on systems running with mod_perl, and is unavailable on Windows.
- A pure Perl implementation of RCS. It avoids the "fork" overhead and is preferred in a "Persistent Perl" environment like mod_perl. It works well when working with small revision histories. However very large histories, such as created with large binary attachments, or topics like WebStatistics which can have a high volume of changes can be extremely slow due to RCSLite loading the revision history into memory.
There is a configuration option embedded in the RCSLite module that can significantly improve performance, It is not enabled by default because it
will disable the capability of storing a revision comment with each save. The developers do not believe that Foswiki uses this feature, but as it might be used by
non-default extensions, it has not been disabled.
To improve performance, (and disable storage of save comments) apply the following patch. Paste it into a file named
"patchrcs" in your Foswiki installation directory,
and then apply the patch by running
patch -p0 < patchrcs. You can also just edit the file directly and change the
1;, around line 105.
diff lib/Foswiki/Store/Rcs/RcsLiteHandler.pm lib/Foswiki/Store/Rcs/RcsLiteHandler.pm
@@ -102,7 +102,7 @@ use Foswiki::Sandbox ();
# doesn't actually use that part of the info record for anything much. We could rework the store API to
# separate the log info, but it would be a lot of work. Using this constant you can ignore the log info in
# getInfo calls. The tests will fail, but the core will run a lot faster.
-use constant CAN_IGNORE_COMMENT => 0; # 1
+use constant CAN_IGNORE_COMMENT => 1; # 1
# As well as the field inherited from Rcs::Handler, the object for each file
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. "Extensions Operation and Maintenance" Tab -> "Install, Update or Remove extensions" Tab. Click the "Search for Extensions" button.
Enter part of the extension name or description and press search. Select the desired extension(s) and click install. If an extension is already installed, it will not show up in the
You can also install from the shell by running the extension installer as the web server user: (Be sure to run as the webserver user, not as root!)
perl tools/extension_installer <NameOfExtension> install
If you have any problems, or if the extension isn't available in
configure, then you can still install manually from the command-line. See https://foswiki.org/Support/ManuallyInstallingExtensions for more help.