[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/cache/ -> ResourceFileCache.php (summary)

Resource loader request result caching in the file system. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 112 lines (3 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

ResourceFileCache:: (4 methods):
  newFromContext()
  useFileCache()
  cacheDirectory()
  isCacheWorthy()


Class: ResourceFileCache  - X-Ref

Resource loader request result caching in the file system.

newFromContext( ResourceLoaderContext $context )   X-Ref
Construct an ResourceFileCache from a context

param: ResourceLoaderContext $context
return: ResourceFileCache

useFileCache( ResourceLoaderContext $context )   X-Ref
Check if an RL request can be cached.
Caller is responsible for checking if any modules are private.

param: ResourceLoaderContext $context
return: bool

cacheDirectory()   X-Ref
Get the base file cache directory

return: string

isCacheWorthy()   X-Ref
Item has many recent cache misses

return: bool



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1