承接 l3rady/object-cache-apcu 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

l3rady/object-cache-apcu

Composer 安装命令:

composer require l3rady/object-cache-apcu

包简介

APCu backend for WordPress' Object Cache

README 文档

README

Contributors: l3rady
Tags: APCu, object cache, backend, cache, performance, speed
Requires at least: 5.6
Tested up to: 6.5.3
Stable tag: 1.2

WordPress APCu Object Cache Backend provides a persistent memory-based backend for the WordPress object cache.

Description

WordPress APCu Object Cache Backend provides a persistent memory-based backend for the WordPress object cache.

An object cache is a place for WordPress and WordPress extensions to store the results of complex operations. On subsequent loads, this data can be fetched from the cache, which will be must faster than dynamically generating it on every page load.

Be sure to read the installation instructions, as this is not a traditional plugin, and needs to be installed in a specific location.

This object cache is a fork of Mark Jaquith's APC Object Cache Backend. There are a number of bugs in that version that have been ignored so I decided to write my own version. The object cache has been pretty much been re-written but some of the best bits from Marks version has been cherry picked over to this version.

Composer Installation

This plugin is marked as a wordpress-dropin type and can be installed automatically via composer using composer-dropin-installer.

Once the composer-dropin-installer is installed and configured in your project you can run composer require l3rady/object-cache-apcu. If set up correctly this should place the object-cache.php file into the your WordPress content dir, usually wp-content.

Manual Installation

  1. Verify that you have PHP 7.2+ and a compatible APCu version installed.
  2. Copy object-cache.php to your WordPress content directory (wp-content/ by default).
  3. Done!

Frequently Asked Questions

I share wp-config.php among multiple WordPress installs. How can I guarantee key uniqueness?

Define WP_APCU_KEY_SALT to something that is unique for each install (like an md5 of the MySQL host, database, and table prefix).

Changelog

1.2

  • Add composer file and add dropin plugin to packagist.org for easy installation via composer.
  • Add latest cache methods added to core recentlys

1.1

  • Add local array cache to reduce APCu calls for repeated requests to same keys during page load. Props to rob006
  • Add WP_APCU_LOCAL_CACHE define to disable local cache for edge cases where local cache can cause memory exhaustion issues

1.0.1

  • Make $cache_hits and $cache_misses public params for stats plugins to access

1.0

l3rady/object-cache-apcu 适用场景与选型建议

l3rady/object-cache-apcu 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.17k 次下载、GitHub Stars 达 53, 最近一次更新时间为 2024 年 05 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 l3rady/object-cache-apcu 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 l3rady/object-cache-apcu 我们能提供哪些服务?
定制开发 / 二次开发

基于 l3rady/object-cache-apcu 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 1.17k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 53
  • 点击次数: 17
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 53
  • Watchers: 9
  • Forks: 17
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2024-05-15