Giter Site home page Giter Site logo

elcobvg / wordpress-opcache Goto Github PK

View Code? Open in Web Editor NEW
56.0 7.0 26.0 56 KB

OPcache Object Cache plugin for WordPress. Faster than Redis, Memcache or APC.

License: GNU General Public License v3.0

PHP 89.82% Shell 10.18%
wordpress wordpress-plugin opcache cache object-cache

wordpress-opcache's People

Contributors

elcobvg avatar superdav42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

wordpress-opcache's Issues

White Screen of Death (WSD)

Hi There!
Yes, it is 100% verified that PHP OPcache extension is installed.
The copied object-cache.php into my WordPress content directory (wp-content/)
causing the White Screen of Death (WSD).
PHP Version is 7.2.31 runs php-fpm on NGINX
WP version 5.4.2
Any ideas on how to make it work finally?
Cheers.

not working with my theme.

the minute i put the drop in error all over the place...

`
Warning: Invalid argument supplied for foreach() in /srv/users/serverpilot/apps/madmax/public/wp-content/plugins/woocommerce/includes/wc-webhook-functions.php on line 106

Warning: array_merge(): Argument #2 is not an array in /srv/users/serverpilot/apps/madmax/public/wp-content/themes/bimber/includes/theme-setup.php on line 174

Warning: array_filter() expects parameter 1 to be array, null given in /srv/users/serverpilot/apps/madmax/public/wp-content/plugins/woocommerce/includes/wc-attribute-functions.php on line 62

Fatal error: Uncaught Error: Call to a member function have_posts() on null in /srv/users/serverpilot/apps/madmax/public/wp-content/themes/bimber/includes/front/post.php:774 Stack trace: #0 /srv/users/serverpilot/apps/madmax/public/wp-content/themes/bimber/includes/front/post.php(551): bimber_get_global_featured_posts_ids() #1 /srv/users/serverpilot/apps/madmax/public/wp-content/themes/bimber/includes/front/home.php(109): bimber_get_featured_posts_ids(Array) #2 /srv/users/serverpilot/apps/madmax/public/wp-content/themes/bimber/includes/front/home.php(126): bimber_get_home_featured_posts_ids() #3 /srv/users/serverpilot/apps/madmax/public/wp-includes/class-wp-hook.php(286): bimber_home_exclude_featured(Object(WP_Query)) #4 /srv/users/serverpilot/apps/madmax/public/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #5 /srv/users/serverpilot/apps/madmax/public/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #6 /srv/users/serverpilot/apps/madmax/public/wp-includes/class-wp-query.php(1634): do_action in /srv/users/serverpilot/apps/madmax/public/wp-content/themes/bimber/includes/front/post.php on line 774
`
would be real nice to get it working cause i really love this idea.

Error after installation and copying object-cache.php

Hello, what I get as error is:
Fatal error: Uncaught Error: Call to undefined function trm_suspend_cache_addition() in /var/www/html/trm-src/object-cache.php:414 Stack trace: #0 /var/www/html/trm-src/object-cache.php(30): TRM_Object_Cache->add() #1 /var/www/html/Source-zACHAvU6As28quwr-trendr/functions.php(469): trm_cache_add() #2 /var/www/html/Source-zACHAvU6As28quwr-trendr/functions.php(1837): trm_load_alloptions() #3 /var/www/html/Source-zACHAvU6As28quwr-trendr/load.php(430): is_blog_installed() #4 /var/www/html/trm-main.php(107): trm_not_installed() #5 /var/www/html/trm-setup.php(90): require_once('/var/www/html/t...') #6 /var/www/html/initiate.php(29): require_once('/var/www/html/t...') #7 /var/www/html/trm-header.php(12): require_once('/var/www/html/i...') #8 /var/www/html/index.php(17): require('/var/www/html/t...') #9 {main} thrown in /var/www/html/trm-src/object-cache.php on line 414
PHP Version is 7.4 . OPCache is enabled and all directives are set like in the readme file.

Public Release on wordpress.org plugin repository

@elcobvg How you feel about releasing this on https://wordpress.org/plugins ?

I think it's working well enough to get some more people testing it. Probably we should add an experimental warning for now just to be safe. I think we should also add a small feature to copy object-cache.php from the plugins folder to wp-content/object-cache.php when the plugin is activated just to make it a little easier to use.

I reviewed all the caching plugins currently in the repository and none of them have an object cache using simple php files which would take advantage of opcache.

PHP 7.2 and 7.3

It's definitely a really good concept and thanks for making and sharing it. As it stands it's, unfortunately, broken on PHP versions 7.2 and 7.3. Could you please perhaps look into it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.