name
- name of the topic
parent
- name of parent topic
attachments
- array of maps, each of which contains: name
- attachment name
attr
- e.g hidden
comment
- attachment comment
path
- client path used to upload attachment
size
- size in Kb
user
- who uploaded the attachment
version
- e.g. 1.3
info
- map containing: author
- most recent author
date
- date of last change
format
- topic format version
version
- topic version number
moved
- map containing: by
- who moved it
date
- when they moved it
from
- where they moved it from
to
- where they moved it to
preferences
- array of maps, each of which contains: name
- preference name
type
- either Set or Local
value
- the value of the named preference
form
- form type
MyForm
. This is a reference to a map containing a key for each field in the form. Each key maps to the value in the form data for that key.
text
- raw text of the topic)
perlre
for help). Numbers can be signed integers or decimals. Single quotes in values may be escaped using backslash (\).
The following operators are available:
Operator | Result | Meaning |
---|---|---|
= |
Boolean | LHS exactly matches the regular expression on the RHS. The expression must match the whole string. |
!= |
Boolean | Inverse of = |
=~ |
Boolean | LHS contains RHS i.e. the RHS is found somewhere in the field value. |
< |
Boolean | Numeric < |
> |
Boolean | Numeric > |
>= |
Boolean | Numeric >= |
<= |
Boolean | Numeric <= |
lc |
String | Unary lower case |
uc |
String | Unary UPPER CASE |
IS_DATE |
Boolean | Compare two dates e.g. '1 Apr 2003' IS_DATE '1 Apr 2004' |
EARLIER_THAN |
Boolean | Date is earlier than the given date |
EARLIER_THAN_OR_ON |
Boolean | Date is earlier than, or on, the given date |
LATER_THAN |
Boolean | LHS is later than the given date |
LATER_THAN_OR_ON |
Boolean | LHS is later than the given date |
WITHIN_DAYS |
Boolean | Date (which must be in the future) is within n working days of todays date |
! |
Boolean | Unary NOT |
AND |
Boolean | AND |
OR |
Boolean | OR |
() |
any | Bracketed subexpression |
IS_DATE
, EARLIER_THAN
etc) must be dates in the format expected by Time::ParseDate
(like the ActionTrackerPlugin). WITHIN_DAYS
works out the number of working days assuming a 5 day week (i.e. excluding Saturday and Sunday). Apologies in advance if your weekend is offset ± a day! Integers will automatically be converted to dates, by assuming they represent a number of seconds since midnight GMT on 1st January 1970. You can also use the d2n
operator to convert a date string to such an integer.
{WorkAreaDir}
in configure
). If any topic changes in the web, this
cache is automatically updated.
Foswiki::Contrib::DBCacheContrib
class. Implementors are stongly recommended to read the POD documentation in the code:
configure
, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Author: | Foswiki:Main/CrawfordCurrie http://c-dot.co.uk, Foswiki:Main/MichaelDaum http://michaeldaumconsulting.com | ||||||||||||
Copyright ©: | This code is based on an original development of Motorola Inc. and is protected by the following copyrights: Copyright @copy 2002-2003 Motorola Inc. All Rights Reserved. Portions copyright © 2004 Crawford Currie http://www.c-dot.co.uk. Portions copyright © 2013 Michael Daum http://michaeldaumconsulting.com |
||||||||||||
License: | GPL | ||||||||||||
Release: | 30 Jun 2013 | ||||||||||||
Version: | v3.0.0 | ||||||||||||
Change History: | |||||||||||||
10 Jul 2013 | Foswikitask:Item12542: cache non-standard %META data and make it searchable | ||||||||||||
28 Mar 2013 | Foswikitask:Item12458: fix op_ref in search queries | ||||||||||||
14 Mar 2013 | Foswikitask:Item12425: make preferences searchable by caching them into a map instead of an array | ||||||||||||
25 Jan 2013 | Foswikitask:Item12369: fixed loading cache from disk on a change | ||||||||||||
07 Jan 2013 | Foswikitask:Item8195: extract and cache preference settings; Foswikitask:Item12333: implement an archivist caching a web in segments; | ||||||||||||
01 Oct 2012 | Foswiktask:Item11752: don't fail to build the cache for formfield names with dots in it | ||||||||||||
10 Jan 2012 | Foswikitask:Item11406: remove redundant reference to archivist from all stored values | ||||||||||||
25 Aug 2011 | Foswikitask:Item11070: working around odd defaults of normalizeWebTopicName |
||||||||||||
28 Mar 2011 | Foswikitask:Item9375: disabling {AlwaysUpdateCache} by default and making an expert option with appropriate warnings | ||||||||||||
17 Nov 2009 | Foswikitask:Item8327: series of robustness fixes (Foswiki:Main.MichaelDaum) | ||||||||||||
30 Jun 2009 | Foswikitask:Item8153: make dirs for path to cache; Foswikitask:Item8194: incoporated patch from Foswiki:Main.MichaelDaum Foswikitask:Item8195: extract and cache permissions settings | ||||||||||||
18 Jun 2009 | Foswikitask:Item8183: fixed problem with Scalar::Util::weaken that was causing DBCachePlugin problems | ||||||||||||
6 Jun 2009 | Foswikitask:Item1691: changes to support Foswiki:Extensions.QueryAcceleratorPlugin | ||||||||||||
7 Apr 2009 | Foswikitask:Item5440: fixed negative values in SUMFIELD Foswikitask:Item8106: add back in the Map methods to the main class, as they are used by subclasses Foswikitask:Item8063: fix the accidental encoding of field values in the cache | ||||||||||||
28 Jan 2009 | Foswikitask:Item453: Foswiki version; added Berkeley DB support, dropped plain-file support. Added Michael Daum's EARLIER_THAN_OR_ON and LATER_THAN_OR_ON ops. Fixed a number of bugs. | ||||||||||||
12346 | fixing uptodate() for Andrew File Systems; fixed memory leak on persistent perl | ||||||||||||
16347 | remove META data from text hash; include META data in all hash. Foswiki:Main.MichaelDaum | ||||||||||||
16346 | caching all topic elements to an all field to allow th search in all of the text and the formfields like the normal grep-based SEARCH does. Foswiki:Main.MichaelDaum |
||||||||||||
15868 | fixed WITHIN_DAYS and EARLIER_THAN. Foswiki:Main.MichaelDaum | ||||||||||||
15583 | made query parser pluggable so that other plugins can implement their own predicates. Foswiki:Main.MichaelDaum | ||||||||||||
15019 | added {DBCacheContrib}{AlwaysUpdateCache} to remove the updateCache from every operation. Foswiki:Main.SvenDowideit | ||||||||||||
13562 | Bugs:Item3985 - fixed failures with hierarchical webs | ||||||||||||
13527 | Moved the cache into the extensions work areas, instead of the web directory | ||||||||||||
12943 | Bugs:Item3659: added automatic conversion of integers to dates | ||||||||||||
12923 | added REF operator; added link to web object to hashes; fixed parent relation to end in System; added "web" property to topic hashes; caching META:PREFERENCES now | ||||||||||||
11537 | Added lc and uc operators for case-insensitive searches | ||||||||||||
9303 | TWikibug:Item1844 - don't die on broken symlinks | ||||||||||||
8682 | TWikibug:Item1580 - one-char fix that makes the difference | ||||||||||||
8110 | TWikibug:Item663 - formatting and text fixes | ||||||||||||
7552 | TWikibug:Item997 - test update | ||||||||||||
7274 | TWikibug:Item719 - onReload() is not a static method. | ||||||||||||
7262 | TWikibug:Item719 - Foswiki:Main.MichaelDaum's patch (almost) to correct parameters to onReload | ||||||||||||
7260 | TWikibug:Item727 - made it clean the form name using normaliseWebTopicName | ||||||||||||
6353 | TWikibug:Item380 - do as the man says; make all $/ local | ||||||||||||
5720 | Updated tests | ||||||||||||
5719 | Fix for correct handling of parent relations | ||||||||||||
5229 | Small improvement to the way it handles errors from Storable and Archive | ||||||||||||
5223 | Documentation fixes, adding gifs. | ||||||||||||
5048 | Cairo readiness | ||||||||||||
5036 | Split from SharedCode | ||||||||||||
5031 | Moving to new name | ||||||||||||
5030 | About to rename | ||||||||||||
5019 | Improved topic data model, cleaned up tests | ||||||||||||
5008 | Added extended access syntax, [?], [*] etc. | ||||||||||||
5006 | Doc fixes | ||||||||||||
5005 | Poddified documentation | ||||||||||||
5003 | Initial version | ||||||||||||
8 Jul 2004 | Initial version, split out from FormQueryPlugin | ||||||||||||
Dependencies: |
|
||||||||||||
Home: | http://foswiki.org/Extensions/DBCacheContrib | ||||||||||||
Support: | http://foswiki.org/Support/DBCacheContrib |