Go to file
cenarium 70e14ebaeb Store references in page_props and cache
This stores references in page_props during links update in
compressed JSON form. If the size is too big, it's broken up
in several parts to fit, which is very unlikely to occur more
than once.

When the data is retrieved from the db, it's always cached. If
set in config, it's also saved in the cache on parse. If not,
the cache is invalidated when references are modified.

Uses cases include : section preview to also show refs defined
elsewhere on the page (T124840) and MobileFrontend (T123328).
For the later, this still needs API support (T123290).

There's a soft dependency on the core change
I0c73b3d181f32502da75687857ae9aeff731f559.

Bug: T125329
Change-Id: I7b106254b8f264f93b0f0c9cfa89f65adeeea4f0
2016-02-10 14:47:02 +01:00
i18n Localisation updates from https://translatewiki.net. 2016-02-07 22:14:02 +01:00
modules Localisation updates from https://translatewiki.net. 2016-02-07 22:14:02 +01:00
.gitignore composer test entry point 2015-11-23 22:15:36 +01:00
.gitreview Adding .gitreview 2012-03-23 10:16:54 -07:00
.jscsrc build: Test JS code with jshint and jscs via npm 2015-11-18 16:54:55 -08:00
.jshintignore Update packages 2015-12-19 09:52:30 +00:00
.jshintrc VisualEditor: Bring in unit tests from VE 2016-02-05 13:41:43 -08:00
AUTHORS.txt VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
Cite.php Add extension.json, empty PHP entry point 2015-05-03 06:36:25 +00:00
Cite_body.php Store references in page_props and cache 2016-02-10 14:47:02 +01:00
CiteCSSFileModule.php VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
CiteDataModule.php VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
CiteHooks.php Store references in page_props and cache 2016-02-10 14:47:02 +01:00
citeParserTests.txt Rollback all, then redo all, when fixing out-of-order tags; not one-by-one 2016-02-02 21:21:30 +01:00
composer.json build: Updating development dependencies 2016-01-05 10:32:19 -08:00
COPYING.txt Add license details and give credit to more authors (based on git shortlog) 2014-07-26 16:16:47 -07:00
extension.json Store references in page_props and cache 2016-02-10 14:47:02 +01:00
Gruntfile.js VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
MIT-LICENSE.txt VisualEditor: Move code for Cite into this repo 2016-02-04 08:41:54 -08:00
package.json build: Updating development dependencies 2015-12-29 11:15:53 -08:00
phpcs.xml Add php code sniffer 2015-12-16 13:11:00 +00:00
README.md Store references in page_props and cache 2016-02-10 14:47:02 +01:00
SpecialCite.php Add SpecialCite stub file for backwards-compatability 2015-05-25 15:01:42 +02:00

Cite

The Cite extension provides a way for users to create references as footnotes to articles.

See https://www.mediawiki.org/wiki/Extension:Cite for detailed documentation.

Configuration

  • $wgCiteStoreReferencesData: If set to true, references are saved in the database so that other extensions can retrieve them independently of the main article content.
  • $wgCiteCacheReferencesDataOnParse: ($wgCiteStoreReferencesData required) By default, references are cached only on database access. If set to true, references are also cached whenever pages are parsed.