Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Maintenance\RebuildConceptCache Class Reference
Inheritance diagram for SMW\Maintenance\RebuildConceptCache:
Inheritance graph
[legend]
Collaboration diagram for SMW\Maintenance\RebuildConceptCache:
Collaboration graph
[legend]

Public Member Functions

 execute ()
 
 reportMessage ( $message)
 

Detailed Description

Manage concept caches

This script is used to manage concept caches for Semantic MediaWiki. Concepts are semantic queries stored on Concept: pages. The elements of concepts can be computed online, or they can come from a pre-computed cache. The wiki may even be configured to display certain concepts only if they are available cached.

This script can create, delete and update these caches, or merely show their status.

Usage: php rebuildConceptCache.php <action> [<select concepts>="">] [<options>]

Actions: –help Show this message. –status Show the cache status of the selected concepts. –create Rebuild caches for the selected concepts. –delete Remove all caches for the selected concepts.

If no further options are given, all concepts in the wiki are processed.

Select concepts: –concept 'Concept name' Process only this one concept. –hard Process only concepts that are not allowed to be computed online according to the current wiki settings. –update Process only concepts that already have some cache, i.e. do not create any new caches. For the opposite (only concepts without caches), use –old with a very high number. –old <min> Process only concepts with caches older than <min> minutes or with no caches at all. -s <startid> Process only concepts with page id of at least <startid> -e <endid> Process only concepts with page id of at most <endid>

Selection options can be combined to process only concepts that meet all the requirements at once. If –concept is given, then -s and -e are ignored.

Options: –quiet Do not give any output. –verbose Give additional output. No effect if –quiet is given.

Use option –help for usage details.

Note: if SMW is not installed in its standard path under ./extensions then the MW_INSTALL_PATH environment variable must be set. See README in the maintenance directory.

GNU GPL v2+

Since
1.9.2
Author
Markus Krötzsch
mwjames

Member Function Documentation

◆ execute()

SMW\Maintenance\RebuildConceptCache::execute ( )
See also
Maintenance::execute

◆ reportMessage()

SMW\Maintenance\RebuildConceptCache::reportMessage (   $message)
Since
1.9.2
Parameters
string$message

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy