{"id":15355580,"url":"https://github.com/elcobvg/wordpress-opcache","last_synced_at":"2025-08-02T03:38:26.814Z","repository":{"id":90744752,"uuid":"114199510","full_name":"elcobvg/wordpress-opcache","owner":"elcobvg","description":"OPcache Object Cache plugin for WordPress. Faster than Redis, Memcache or APC.","archived":false,"fork":false,"pushed_at":"2022-08-24T10:20:21.000Z","size":56,"stargazers_count":60,"open_issues_count":7,"forks_count":25,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-15T07:44:52.228Z","etag":null,"topics":["cache","object-cache","opcache","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elcobvg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-14T03:47:40.000Z","updated_at":"2025-02-15T14:25:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"e41de3ef-6328-40bb-b192-aea5dd576c04","html_url":"https://github.com/elcobvg/wordpress-opcache","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":"0.36363636363636365","last_synced_commit":"aa4281ba9c4bef088df4b1012b83b7e53b955ffa"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/elcobvg/wordpress-opcache","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elcobvg%2Fwordpress-opcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elcobvg%2Fwordpress-opcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elcobvg%2Fwordpress-opcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elcobvg%2Fwordpress-opcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elcobvg","download_url":"https://codeload.github.com/elcobvg/wordpress-opcache/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elcobvg%2Fwordpress-opcache/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268331330,"owners_count":24233224,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","object-cache","opcache","wordpress","wordpress-plugin"],"created_at":"2024-10-01T12:24:51.649Z","updated_at":"2025-08-02T03:38:26.788Z","avatar_url":"https://github.com/elcobvg.png","language":"PHP","readme":"# wordpress-opcache\nOPcache Object Cache plugin for WordPress. Faster than Redis, Memcache or APC.\n\n## Description ##\n\nThis plugin provides a PHP OPcache based driver for the WordPress object cache.\n\nAn object cache is a place for WordPress and WordPress extensions to store the results of complex operations. On subsequent loads,\nthis data can be fetched from the cache, which will be must faster than dynamically generating it on every page load.\n\nBe sure to read the installation instructions, as this is **not** a traditional plugin, and needs to be installed in a specific location.\n\nThis method is **faster** than Redis, Memcache, APC, and other PHP caching solutions because all those solutions must serialize and unserialize objects. By storing PHP objects in file cache memory across requests, this driver can avoid serialization completely!\n\n## Installation\n\n1. Verify that you have the PHP OPcache extension installed. (see below)\n2. Copy `object-cache.php` to your WordPress content directory (`wp-content/` by default). *This is a drop-in file, not a plugin, so it belongs in the wp-content directory, not the plugins directory.*\n3. Done!\n\n### OPcache configuration\n\nOPcache can only be compiled as a shared extension. You **must** compile PHP with the `--enable-opcache` option for OPcache to be available.\n\nOPcache must be enabled and configured in your php.ini. Look for the section starting with `[OPcache]` and enter the desired values. The more memory you can assign to OPcache, the faster your cache will be. The `opcache.max_accelerated_files` value should be high enough to hold all objects that need to be cached. \n\nSince *all* PHP files will be cached with OPcache, it is not advisable to use it in a development environment, so only enable it in production. Alternatively, you can exclude PHP files from being cached by specifying a blacklist file with the `opcache.blacklist_filename` option. \n\n```shell\n  opcache.enable=1\n  opcache.memory_consumption=512\n  opcache.interned_strings_buffer=64\n  opcache.max_accelerated_files=32500\n  opcache.validate_timestamps=1\n  opcache.save_comments=1\n  opcache.revalidate_freq=60\n  opcache.fast_shutdown=1\n  opcache.enable_cli=1\n```\n\n**Graceful degradation:** when OPcache is not enabled or installed, or memory is insufficient, this driver will still work but will read from the cached files instead of from memory. Since there's no unserialization required, it will still be faster than a regular file cache driver.\n\n### Contributors\nSpecial thanks go out to [@superdav42](https://github.com/superdav42) for making this thing actually work :thumbsup:\n\n### References\n\n- [500X Faster Caching than Redis/Memcache/APC in PHP \u0026 HHVM](https://blog.graphiq.com/500x-faster-caching-than-redis-memcache-apc-in-php-hhvm-dcd26e8447ad)\n- [PHP OPcache Documentation](http://php.net/manual/en/book.opcache.php)\n- [Pecl::Package::ZendOpcache](http://pecl.php.net/package/ZendOpcache)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felcobvg%2Fwordpress-opcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felcobvg%2Fwordpress-opcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felcobvg%2Fwordpress-opcache/lists"}