Title: DP Simple Cache
Author: danpai
Published: <strong>दिसम्बर 31, 2011</strong>
Last modified: जनवरी 2, 2012

---

प्लगइन्स खोजें

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/dpwpsimplecache.svg)

# DP Simple Cache

 [danpai](https://profiles.wordpress.org/danpai/) द्वारा

[डाउनलोड](https://downloads.wordpress.org/plugin/dpwpsimplecache.0.4.zip)

 * [विवरण](https://hi.wordpress.org/plugins/dpwpsimplecache/#description)
 * [समीक्षा](https://hi.wordpress.org/plugins/dpwpsimplecache/#reviews)
 *  [स्थापना](https://hi.wordpress.org/plugins/dpwpsimplecache/#installation)
 * [विकास](https://hi.wordpress.org/plugins/dpwpsimplecache/#developers)

 [समर्थन](https://wordpress.org/support/plugin/dpwpsimplecache/)

## विवरण

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:

    ```
        <?php echo dpscache_active_users(); ?>
    ```

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](https://github.com/danpai/dpwpsimplecache)

## इंस्टॉलेशन

Copy the folder dpwpsimplecache and its content into `your-blog/wp-content/plugins`

## सामान्य प्रश्न

No FAQ at this time.

## समीक्षाएं

इस प्लगइन के लिए कोई समीक्षा नहीं है।

## सहायक &डेवलपर्स

यह खुला स्रोत सॉफ्टवेयर है। अनुगामी लोगो ने इस प्लगइन के लिए योगदान दिया है।

योगदानकर्ता

 *   [ danpai ](https://profiles.wordpress.org/danpai/)

[Translate “DP Simple Cache” into your language.](https://translate.wordpress.org/projects/wp-plugins/dpwpsimplecache)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/dpwpsimplecache/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/dpwpsimplecache/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/dpwpsimplecache/)
by [RSS](https://plugins.trac.wordpress.org/log/dpwpsimplecache/?limit=100&mode=stop_on_copy&format=rss).

## बदलाव विवरण

#### 0.1

 * This version is quite stable but it can be used as long as you know what you 
   are doing.

#### 0.2

 * This version add a custom table for session management. It can be used as long
   as you know what you are doing.

#### 0.3

 * Fixed some minor errors

#### 0.3.1

 * Fixed some minor errors

#### 0.3.2

 * Fixed some minor errors

#### 0.4

 * Single session level management

## मेटा

 *  संस्करण **0.4**
 *  Last updated **14 वर्ष पहले**
 *  Active installations **10 से कम**
 *  WordPress version ** 2.5 या ज्यादा **
 *  Tested up to **3.3.2**
 *  भाषा
 * [English (US)](https://wordpress.org/plugins/dpwpsimplecache/)
 * Tags
 * [cache](https://hi.wordpress.org/plugins/tags/cache/)[session](https://hi.wordpress.org/plugins/tags/session/)
 *  [Advanced View](https://hi.wordpress.org/plugins/dpwpsimplecache/advanced/)

## मूल्यांकन

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/dpwpsimplecache/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dpwpsimplecache/reviews/)

## योगदानकर्ता

 *   [ danpai ](https://profiles.wordpress.org/danpai/)

## समर्थन

कुछ कहना है? कोई मदद चाहिए?

 [समर्थन फोरम देखें ](https://wordpress.org/support/plugin/dpwpsimplecache/)

## प्रदान करना

आप इस प्लगइन की उन्नति का समर्थन करना चाहेंगे?

 [ इस प्लगइन को प्रदान करें ](http://danilopaissan.net/blog/)