dbxapp 4.1.3
CMS, Shop, Workflows und modulare Geschäftsanwendungen
Loading...
Searching...
No Matches
dbx\dbxContent\dbxContentPageCache Class Reference

Static Public Member Functions

static isConfigEnabled ()
static setConfigEnabled (bool $enabled)
static isEnabled ()
 Abwaertskompatibel: "aktiv" bezeichnet das Schreiben neuer Seiten.
static isReadEnabled ()
 Darf der aktuelle Request vorhandene Gastseiten aus dem Cache lesen?
static isWriteEnabled ()
 Darf der aktuelle Request eine neue Gastseite in den Cache schreiben?
static isContentRoute ()
static isPermalinkPageRequest ()
static prepareFullPageRequest ()
 Bereitet den Gast-Seiten-Cache nur aus dem bereits erkannten URL-Permalink vor.
static attachResolvedContentRoute ()
 Bindet nach einem MISS die live aufgeloeste Content-ID an den Schreibvorgang.
static isPreparedFullPageRequest ()
static readFullPage ()
 Liefert ausschliesslich eine bereits komplett gerenderte HTML-Seite.
static writeFullPage (string $html)
 Schreibt die finale Ausgabe nach Design, Modulen, Interpreter und Filtern.
static baseDir ()
static menuVariantFlat (int $flat=1)
static menuVariantLoad (int $deep=9, string $mode='', string $label='')
static currentLng ()
static currentDesign ()
 Das Design ist Bestandteil der vollstaendigen HTML-Ausgabe.
static ensureDirs ()
static purgeLegacyMenuCache ()
 Entfernt den nicht mehr verwendeten Menu-Cache.
static contentPath (int $cid, string $lng)
static fullPagePath (string $permalink, string $lng, string $design='', string $skin='')
static permalinkContentPath (string $permalink, string $lng)
static menuPath (int $root, string $lng, string $variant='flat-1')
static pageMetaPath (int $cid)
static readContent (int $cid, string $lng='')
static readPermalinkContent (string $permalink, string $lng='')
static writeContent (int $cid, string $html, array $meta=array(), string $lng='')
static readMenu (int $root, string $variant='flat-1', string $lng='')
static writeMenu (string $html, int $root, string $variant='flat-1', string $lng='')
static readPageMeta (int $cid)
static writePageMeta (int $cid, array $meta)
static invalidateContent (int $cid)
static invalidateMenu (int $root)
static invalidateAllMenus ()
static invalidateAllFullPages ()
 Menues sind Bestandteil jeder Full-Page-Ausgabe.
static purgeStaleFullPages (string $generation='')
 Entfernt V3-Dateien alter Generationen.
static invalidateSitemap ()
static invalidateAll ()
static cacheStats ()
static invalidateFolderTree ($db, int $folderId)

Detailed Description

Definition at line 6 of file dbxContentPageCache.class.php.

Member Function Documentation

◆ attachResolvedContentRoute()

dbx\dbxContent\dbxContentPageCache::attachResolvedContentRoute ( )
static

Bindet nach einem MISS die live aufgeloeste Content-ID an den Schreibvorgang.

Definition at line 216 of file dbxContentPageCache.class.php.

References if, and isPreparedFullPageRequest().

◆ baseDir()

dbx\dbxContent\dbxContentPageCache::baseDir ( )
static

Definition at line 323 of file dbxContentPageCache.class.php.

References $dir, and get_file_dir().

Referenced by invalidateAllMenus(), pageMetaPath(), and purgeLegacyMenuCache().

◆ cacheStats()

dbx\dbxContent\dbxContentPageCache::cacheStats ( )
static

Definition at line 786 of file dbxContentPageCache.class.php.

References $content, and ensureDirs().

◆ contentPath()

dbx\dbxContent\dbxContentPageCache::contentPath ( int $cid,
string $lng )
static

Definition at line 455 of file dbxContentPageCache.class.php.

References $lng.

◆ currentDesign()

dbx\dbxContent\dbxContentPageCache::currentDesign ( )
static

Das Design ist Bestandteil der vollstaendigen HTML-Ausgabe.

Definition at line 351 of file dbxContentPageCache.class.php.

References $config.

◆ currentLng()

dbx\dbxContent\dbxContentPageCache::currentLng ( )
static

Definition at line 345 of file dbxContentPageCache.class.php.

References $lng.

Referenced by readPageMeta().

◆ ensureDirs()

dbx\dbxContent\dbxContentPageCache::ensureDirs ( )
static

Definition at line 375 of file dbxContentPageCache.class.php.

References if.

Referenced by cacheStats().

◆ fullPagePath()

dbx\dbxContent\dbxContentPageCache::fullPagePath ( string $permalink,
string $lng,
string $design = '',
string $skin = '' )
static

Definition at line 461 of file dbxContentPageCache.class.php.

References $design, and $lng.

◆ invalidateAll()

dbx\dbxContent\dbxContentPageCache::invalidateAll ( )
static

Definition at line 738 of file dbxContentPageCache.class.php.

References $file.

Referenced by dbx\dbxAdmin\dbxPageCache\run().

◆ invalidateAllFullPages()

dbx\dbxContent\dbxContentPageCache::invalidateAllFullPages ( )
static

Menues sind Bestandteil jeder Full-Page-Ausgabe.

Definition at line 662 of file dbxContentPageCache.class.php.

References $file.

◆ invalidateAllMenus()

dbx\dbxContent\dbxContentPageCache::invalidateAllMenus ( )
static

Definition at line 653 of file dbxContentPageCache.class.php.

References $file, baseDir(), and foreach.

◆ invalidateContent()

dbx\dbxContent\dbxContentPageCache::invalidateContent ( int $cid)
static

Definition at line 547 of file dbxContentPageCache.class.php.

◆ invalidateFolderTree()

dbx\dbxContent\dbxContentPageCache::invalidateFolderTree ( $db,
int $folderId )
static

Definition at line 806 of file dbxContentPageCache.class.php.

References $db, and if.

◆ invalidateMenu()

dbx\dbxContent\dbxContentPageCache::invalidateMenu ( int $root)
static

Definition at line 644 of file dbxContentPageCache.class.php.

References $file, and $root.

◆ invalidateSitemap()

dbx\dbxContent\dbxContentPageCache::invalidateSitemap ( )
static

◆ isConfigEnabled()

dbx\dbxContent\dbxContentPageCache::isConfigEnabled ( )
static

Definition at line 12 of file dbxContentPageCache.class.php.

References get_base_dir().

Referenced by isWriteEnabled().

◆ isContentRoute()

dbx\dbxContent\dbxContentPageCache::isContentRoute ( )
static

Definition at line 118 of file dbxContentPageCache.class.php.

References if.

◆ isEnabled()

dbx\dbxContent\dbxContentPageCache::isEnabled ( )
static

Abwaertskompatibel: "aktiv" bezeichnet das Schreiben neuer Seiten.

Definition at line 52 of file dbxContentPageCache.class.php.

References isWriteEnabled().

Referenced by isPermalinkPageRequest().

◆ isPermalinkPageRequest()

dbx\dbxContent\dbxContentPageCache::isPermalinkPageRequest ( )
static

Definition at line 127 of file dbxContentPageCache.class.php.

References if, and isEnabled().

◆ isPreparedFullPageRequest()

dbx\dbxContent\dbxContentPageCache::isPreparedFullPageRequest ( )
static

◆ isReadEnabled()

dbx\dbxContent\dbxContentPageCache::isReadEnabled ( )
static

Darf der aktuelle Request vorhandene Gastseiten aus dem Cache lesen?

Definition at line 57 of file dbxContentPageCache.class.php.

References if.

Referenced by isWriteEnabled().

◆ isWriteEnabled()

dbx\dbxContent\dbxContentPageCache::isWriteEnabled ( )
static

Darf der aktuelle Request eine neue Gastseite in den Cache schreiben?

Definition at line 87 of file dbxContentPageCache.class.php.

References isConfigEnabled(), and isReadEnabled().

Referenced by isEnabled(), and writeFullPage().

◆ menuPath()

dbx\dbxContent\dbxContentPageCache::menuPath ( int $root,
string $lng,
string $variant = 'flat-1' )
static

Definition at line 487 of file dbxContentPageCache.class.php.

References $lng, and $root.

◆ menuVariantFlat()

dbx\dbxContent\dbxContentPageCache::menuVariantFlat ( int $flat = 1)
static

Definition at line 328 of file dbxContentPageCache.class.php.

◆ menuVariantLoad()

dbx\dbxContent\dbxContentPageCache::menuVariantLoad ( int $deep = 9,
string $mode = '',
string $label = '' )
static

Definition at line 332 of file dbxContentPageCache.class.php.

References $mode.

◆ pageMetaPath()

dbx\dbxContent\dbxContentPageCache::pageMetaPath ( int $cid)
static

Definition at line 495 of file dbxContentPageCache.class.php.

References baseDir().

◆ permalinkContentPath()

dbx\dbxContent\dbxContentPageCache::permalinkContentPath ( string $permalink,
string $lng )
static

Definition at line 480 of file dbxContentPageCache.class.php.

References $lng.

◆ prepareFullPageRequest()

dbx\dbxContent\dbxContentPageCache::prepareFullPageRequest ( )
static

Bereitet den Gast-Seiten-Cache nur aus dem bereits erkannten URL-Permalink vor.

Fuer einen Treffer ist deshalb keine Content-/CID-Datenbankabfrage notwendig.

Definition at line 174 of file dbxContentPageCache.class.php.

◆ purgeLegacyMenuCache()

dbx\dbxContent\dbxContentPageCache::purgeLegacyMenuCache ( )
static

Entfernt den nicht mehr verwendeten Menu-Cache.

Definition at line 439 of file dbxContentPageCache.class.php.

References $dir, and baseDir().

◆ purgeStaleFullPages()

dbx\dbxContent\dbxContentPageCache::purgeStaleFullPages ( string $generation = '')
static

Entfernt V3-Dateien alter Generationen.

Das ist insbesondere nach einem Deployment wichtig, bei dem die Generation-Datei neu angelegt wurde, waehrend alte HTML-Dateien im persistenten Cache-Verzeichnis verblieben.

Definition at line 702 of file dbxContentPageCache.class.php.

References if.

◆ readContent()

dbx\dbxContent\dbxContentPageCache::readContent ( int $cid,
string $lng = '' )
static

Definition at line 499 of file dbxContentPageCache.class.php.

References $lng.

◆ readFullPage()

dbx\dbxContent\dbxContentPageCache::readFullPage ( )
static

Liefert ausschliesslich eine bereits komplett gerenderte HTML-Seite.

Definition at line 264 of file dbxContentPageCache.class.php.

References if, and isPreparedFullPageRequest().

◆ readMenu()

dbx\dbxContent\dbxContentPageCache::readMenu ( int $root,
string $variant = 'flat-1',
string $lng = '' )
static

Definition at line 514 of file dbxContentPageCache.class.php.

References $lng, and $root.

◆ readPageMeta()

dbx\dbxContent\dbxContentPageCache::readPageMeta ( int $cid)
static

Definition at line 522 of file dbxContentPageCache.class.php.

References currentLng().

◆ readPermalinkContent()

dbx\dbxContent\dbxContentPageCache::readPermalinkContent ( string $permalink,
string $lng = '' )
static

Definition at line 504 of file dbxContentPageCache.class.php.

References $lng.

◆ setConfigEnabled()

dbx\dbxContent\dbxContentPageCache::setConfigEnabled ( bool $enabled)
static

Definition at line 39 of file dbxContentPageCache.class.php.

References $config.

◆ writeContent()

dbx\dbxContent\dbxContentPageCache::writeContent ( int $cid,
string $html,
array $meta = array(),
string $lng = '' )
static

Definition at line 509 of file dbxContentPageCache.class.php.

References $html, and $lng.

◆ writeFullPage()

dbx\dbxContent\dbxContentPageCache::writeFullPage ( string $html)
static

Schreibt die finale Ausgabe nach Design, Modulen, Interpreter und Filtern.

Definition at line 298 of file dbxContentPageCache.class.php.

References $html, if, isPreparedFullPageRequest(), and isWriteEnabled().

Referenced by run_web_app_request().

◆ writeMenu()

dbx\dbxContent\dbxContentPageCache::writeMenu ( string $html,
int $root,
string $variant = 'flat-1',
string $lng = '' )
static

Definition at line 518 of file dbxContentPageCache.class.php.

References $html, $lng, and $root.

◆ writePageMeta()

dbx\dbxContent\dbxContentPageCache::writePageMeta ( int $cid,
array $meta )
static

Definition at line 542 of file dbxContentPageCache.class.php.


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