WordPress plugin intelligence profile

DP Simple Cache

D(ifferent)P(lace) Simple Cache is a WordPress plugin to implement a simple cache of objects at session level.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.3
Current version0.4
WordPress coverageTested up to WordPress 3.3
Minimum stackWP 2.5 · PHP —
Directory statusactive
Last directory update2 Jan 201214y ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records DP Simple Cache version 0.4 as active, updated 14y ago and tested up to WordPress 3.3.

Overview

About this plugin

D(ifferent)P(lace) Simple Cache is a WordPress plugin to implement a simple cache of objects at session level.

dpwpsimplecache provides a global variable $dpcache, which is an instantiation of the class DP_Cache already set up to talk to the $_SESSION. Always use the global $dpcache variable (Remember to globalize $dpcache before using it in any custom functions).

If you don’t want to track sessions into db set the $USE_DB_SESSION_MANAGER global variable to 0

global $USE_DB_SESSION_MANAGER; $USE_DB_SESSION_MANAGER = 0; // default 1

Insert object;

$dpcache->set($key,$object);

Get object:

$object = $dpcache->set($key);

Count active users:

$count_users = $dpcache->get_sessions_number();

Count objects in the current user’s $_SESSION:

$dpcache->get_statistics();

Get all objects in the current user’s $_SESSION:

$dpcache->get_all_values();

Test if an object exist in the current user’s $_SESSION:

$dpcache->contais($key);

Delete all objects. If the $all parameter is set to false the method delete only the current user’s $_SESSION, if true truncate the entire table (default false):

$dpcache->flush();

Prints human-readable information about all objects:

$dpcache->inspect();

Delete an object in the current user’s $_SESSION:

$dpcache->delete($key);

Delete single session by ID:

$dpcache->invalidate_single_session($sessid);

Prints the number of active sessions:

>

At any time, through the administrative page, you can:

  • see all objects in the current user cache
  • delete all objects in the current user cache
  • force the deletion of all sessions
  • force the deletion of a single session

You can find the latest release on GitHub

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • cache
  • session
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.3

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 3.3.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.3
Minimum requirementsWordPress 2.5 · PHP not listed
Update activity2 Jan 201214y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.