PHPackages                             xaraya/cachemanager - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. xaraya/cachemanager

ActiveXaraya-module

xaraya/cachemanager
===================

Manage the output cache system of Xaraya

2.9.4(3mo ago)0113GPL-2.0-or-laterPHP

Since Apr 14Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/xaraya-modules/cachemanager)[ Packagist](https://packagist.org/packages/xaraya/cachemanager)[ Docs](https://github.com/xaraya-modules/cachemanager)[ RSS](/packages/xaraya-cachemanager/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (19)Used By (0)

Overview
--------

[](#overview)

### What is it?

[](#what-is-it)

The CacheManager module provides an administrative interface to control the settings of the xarCache system of Xaraya. It also provides hooks that allow the cache system to know when changes have been made to modules so that it can respond accordingly (event based cache expiration/invalidation).

The output cache system is designed to reduce the amount of work a server system has to do under heavy load conditions. It saves the output used by Xaraya so that it does not need to go through the entire process to reproduce the same output over and over again. At this point, only page level output caching for anonymous users and block level output caching for all users are available. In time, the output cache system will also support module level output caching for all users, as well as more efficient serving of cached pages for anonymous users. Page level output caching for certain user groups is also planned to be available to sites that can take advantage of this.

Please do not confuse output caching with Xaraya's variable or template caching systems. Each are different. In time, they will likely use the same caching infrastructure, but will still provide different caching for different purposes. General data caching is also planned for xarCache. For more on the different points of caching in Xaraya, please refer to:

### How to use it?

[](#how-to-use-it)

The CacheManager module has several tools for managing the xarCache system and your cached output files. The tools are organized under the following menu links:

- Flush Cache - allows you to flush (delete) the output cache of specific Cache Keys. Page output Cache Keys are define by module, type, and function. Block output Cache Keys are define by module, block instance id, and block group.
- Page Caching - allows you to enable page caching for certain user groups, set up session-less page caching, and configure auto-cache settings. Session-less page caching allows cached pages to be served before loading xarCore to users who do not have a session (new/first-time visitors). Auto-cache allows you to configure your site to dynamically enable session-less page caching for pages that hit certain page view thresholds.
- Block Caching - provides a single view and management point of the output caching settings of all block instances.
- View Statistics - shows a summary with the cache hit ratio and size for the different cache types, and the details on how the output cache system is performing.
- Modify Config - allows you to set the values for the output cache system. Mouse over the setting titles for more information.

### Included Blocks

[](#included-blocks)

The CacheManager Module has no blocks included at this time.

### Included Hooks

[](#included-hooks)

The CacheManager module provides create, update, delete and modify config API hooks and a modify GUI hook (currently only used for adding caching configuration administration to block instance modify pages). To activate these hooks, go to Admin panel -&gt; Modules -&gt; Configure Hooks and click on the cachemanager link. Select the modules you would like to enable the CacheManager hook functionality for (articles, categories, autolinks, blocks, html are likely candidates) and click the Save Changes button. Once hooked to CacheManager, when you create, update, or delete items of the module, or modify the configuration of a module, the call to the CacheManager hooks will flush the appropriate cache to insure that your changes will be instantly available on your site (not masked by cached output files).

### Additional Information

[](#additional-information)

Please note that page level output caching is not appropriate for sites that require the serving of dynamic content to anonymous users. Example: if each page contains data that changes every second and must be presented to the anonymous viewer in the latest state, you do not want to use page level output caching. However, if it is acceptable to present the data with changes no older than 1 minute, you can enable page level output caching and set the Cache Expiration Time to 60 seconds. If your site serves the same page 100 times per minute this will measurably reduce the load on your systems to do so.

Page level output caching may also affect the expected behavior of certain aspects of Xaraya as cached pages are served without loading the modules. Example: the stats and opentracker modules will not accurately reflect the total number of page views your site receives because they are not invoked when serving cached pages. If your site is under heavy load that needs to be reduced, you may want to consider doing your site statistic tracking via the web server log files or a javascript based solution like that implemented by Hitbox or WebTrends Live, anyway. Either of these methods will accurately work with page level caching enabled.

Block level output caching does not have the same dynamic content limitations. It is purpose-built to allow Xaraya to fully load the core and active module(s) with each page request. Block output caching can be configure on a per block instance basis, so you can have some block instances be fully dynamic (never cached), while other instances are cached for varying lifetimes. The cache of each block instance can be configured to be or not be shared between users (or groups of users) and pages. This allows for very flexible output caching behaviors for sites with mixed static and dynamic pages, but the tradeoff is a much higher fixed cost (page generation time). Where page level output caching can reduce a site's page generation time by 65 to 80% (YMMV depending on site configuration), block level output caching general only reduced page generation time by 20 to 30%.

Page level and block level output caching can be used in tandem to reduce loads and improve page generation times on sites that serve both anonymous and non-anonymous audience members, or on sites with varying page and block level output caching requirements.

### TODO List

[](#todo-list)

General caching related:

- Support multisite configurations.
- Provide data caching API.
- Provide an output cache file browser, like the template cache file browser in SiteTools.
- Refactor, refactor, refactor.

Page level output caching related:

- Support itemtype as a 'name' between cacheKey and page when available.
- Provide Scheduler, getfile/link integration for pre-population of output cache.
- Analyze Slashdot and Google News use of 304 &amp; ETag HTTP headers and rework our use of these headers based on findings.

Block/module level output caching related:

- Add module output caching functions, reutilizing xarBlock\*Cached functions when appropriate.
- Add xar::mod()-&gt;\*Cached() calls in xar::mod()-&gt;guiFunc().
- Provide Admin GUI hooks to modules beyond Blocks for the configuration of per module output cache settings.

### Further Information

[](#further-information)

Further information on the cachemanager module can be found at

- cachemanager Extension page at [Xaraya Extension and Releases](http://www.xaraya.com/index.php/release/1652.html "cachemanager Module - Xaraya Extension 1652"). Click on Version History tab at the bottom to get the latest release information.
- Related tutorials and documentation on cachemanager found at [Xaraya Documentation.](http://www.xaraya.com/index.php/keywords/cachemanager/ "Related documentation on cachemanager")

\*\* cachemanager Overview\*\*
 Version 1.0.1 2006-04-12

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance82

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 67.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~78 days

Recently: every ~10 days

Total

18

Last Release

97d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e9d0d3fe4bc8619159b6d18ea3fac40102ac68cb75a5a32bce661f75e47da2eb?d=identicon)[mikespub](/maintainers/mikespub)

---

Top Contributors

[![mikespub](https://avatars.githubusercontent.com/u/1447115?v=4)](https://github.com/mikespub "mikespub (107 commits)")[![mrvdb](https://avatars.githubusercontent.com/u/73067?v=4)](https://github.com/mrvdb "mrvdb (50 commits)")[![random777](https://avatars.githubusercontent.com/u/4590892?v=4)](https://github.com/random777 "random777 (1 commits)")

### Embed Badge

![Health badge](/badges/xaraya-cachemanager/health.svg)

```
[![Health](https://phpackages.com/badges/xaraya-cachemanager/health.svg)](https://phpackages.com/packages/xaraya-cachemanager)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
