Title: DP Simple Cache
Author: danpai
Published: <strong>31 ທັນວາ 2011</strong>
Last modified: 2 ມັງກອນ 2012

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ 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://lo.wordpress.org/plugins/dpwpsimplecache/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/dpwpsimplecache/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/dpwpsimplecache/#installation)
 * [ການພັດທະນາ](https://lo.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.

## ການຣີວິວ

ບໍ່ມີການຣີວິວສຳລັບປລັກອິນນີ້.

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“DP Simple Cache” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນ
ການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “DP Simple Cache” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/dpwpsimplecache)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/dpwpsimplecache/), ກວດເບິ່ງ
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/dpwpsimplecache/), ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/dpwpsimplecache/)
ຜ່ານ [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

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **0.4**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **15 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **ໜ້ອຍກວ່າ 10**
 *  ເວີຊັນ WordPress ** 2.5 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **3.3.2**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/dpwpsimplecache/)
 * ແທັກ
 * [cache](https://lo.wordpress.org/plugins/tags/cache/)[session](https://lo.wordpress.org/plugins/tags/session/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/dpwpsimplecache/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/dpwpsimplecache/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/dpwpsimplecache/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/dpwpsimplecache/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](http://danilopaissan.net/blog/)