Giter Site home page Giter Site logo

cache-master's Introduction

cache-master's People

Contributors

terrylinooo 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

Watchers

 avatar  avatar  avatar  avatar

cache-master's Issues

PHP Fatal Error: "The directory of the storage does not exist"

Hello,

When I want to enable the plugin via CLI, I have this error:

$ wp plugin activate cache-master
PHP Fatal error:  Uncaught Shieldon\SimpleCache\Exception\CacheException: The directory of the storage does not exist. in /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/AssertTrait.php:110
Stack trace:
#0 /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Driver/File.php(54): Shieldon\SimpleCache\CacheProvider->assertDirectoryWritable()
#1 /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Cache.php(53): Shieldon\SimpleCache\Driver\File->__construct()
#2 /srv/www/site.com/current/web/app/plugins/cache-master/inc/helpers.php(211): Shieldon\SimpleCache\Cache->__construct()
#3 /srv/www/site.com/current/web/app/plugins/cache-master/inc/class-cache-master.php(58): scm_driver_factory()
#4 /srv/www/site.com/current/web/app/plugins/cache-master/cache-master.php(102): Cache_Master->__construct()
#5 /srv/www/site.com/current/web/wp/wp-admin in /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/AssertTrait.php on line 110
Fatal error: Uncaught Shieldon\SimpleCache\Exception\CacheException: The directory of the storage does not exist. in /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/AssertTrait.php:110
Stack trace:
#0 /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Driver/File.php(54): Shieldon\SimpleCache\CacheProvider->assertDirectoryWritable()
#1 /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Cache.php(53): Shieldon\SimpleCache\Driver\File->__construct()
#2 /srv/www/site.com/current/web/app/plugins/cache-master/inc/helpers.php(211): Shieldon\SimpleCache\Cache->__construct()
#3 /srv/www/site.com/current/web/app/plugins/cache-master/inc/class-cache-master.php(58): scm_driver_factory()
#4 /srv/www/site.com/current/web/app/plugins/cache-master/cache-master.php(102): Cache_Master->__construct()
#5 /srv/www/site.com/current/web/wp/wp-admin in /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/AssertTrait.php on line 110

关于如何缓存主题自定义页面

首先非常喜欢你开发的没一个插件,非常符合我现在的需求,以后也会是,非常棒!就如标题所提到的,您是否希望把主题自定义页面集成到cache插件呢?

About the search function redirecting to the home page after using caching

Currently using the cms system is wordrepss, using the cache method for sqlite and Memcached, I use the process found that the site search function is invalid, the search results will be redirected to the home page, I judge the search logic is no search results in the cache, so do not hit, so return to the home page

The plugin cannot be enabled because it caused a fatal error.

Warning: require_once(/……/wp-content/plugins/cache-master-2.1.2/vendor/composer/autoload_real.php): failed to open stream: No such file or directory in /home/wwwroot/nav.imydl.tech/wp-content/plugins/cache-master-2.1.2/vendor/autoload.php on line 5

Fatal error: require_once(): Failed opening required '/……/wp-content/plugins/cache-master-2.1.2/vendor/composer/autoload_real.php' (include_path='.:/usr/local/php7.4/lib/php') in /……/wp-content/plugins/cache-master-2.1.2/vendor/autoload.php on line 5

分别在PHP 7.4和PHP 8.1下测试都是这个错误!

About website logo duplication in expert mode

When I create a new site by directly copying one more site backup and data backup, I find that the logo (I think he is the site logo) in expert mode will be duplicated with the previous site, I have tried to uninstall and reinstall, and it is the same logo, how can I solve this aspect? I have thought that I should wait until the site is officially online before installing cache master, it may work, but there is no test environment to test it, this is an idea

image

Page not caching for logged in users

Hello Terrylin,

your Plugin ist working like charme - for guests/visitors.
My WP/Woo-Installation as a custom user role named "retailer" for which I'd like the pages to be cached.
The Cachemaster Plugin settings for "guest" and "logged in users" are checked – but without effect.
How can I manage to do that?

Thanks in advance and regards,
Jens

Clear Cache on post publishing or updating not work

Hello Author
I love your plugin it's make my site fast as lightning but it has some problem.
the problem is cache not purge on post published or modified and on plugin or theme updated. I tried on my live site or on local dev confirmed it's not working even I try clean install WordPress it not work too.
thank you.

The cache data seems to be overlapping.

The cache data seems to be overlapping.

I installed two wordpress on one server machine and applied Cache Master to each. Then both sites show only one site. Each database is installed.

Exclude urls from cache

Hello,

I think a function to exclusive some cache urls would be nice.

In my case we have a reservation plugin and the search page to be cached for all, since visitors will still select other dates.

Another serial option is to cache by url parameters and do nothing in general.

example url:

search/?dep=2022-02-09+14%3A38&p1=403&d1=402&p2=&d2=&ppl=1&trip=1

Thanks

Feature - better path structure for cached files (file_driver)

Hello,

at the moment all cached files are saved under
/path/to/wordpress/wp-content/uploads/cache-master/FOLDERNAME/file_driver/SOMEHASH.cache

This is not an optimal solution for e.g. nginx try_files optimization. With this we can bypass the php handler complete for much more performance. But for this we need a path structure like that:
/path/to/wordpress/wp-content/uploads/cache-master/file_driver/${http_host}${cache_uri}index.html

Error "The directory of the storage does not exist"

Hi,

When activating plugin, I have this error:

wp plugin activate cache-master

PHP Fatal error:  Uncaught Shieldon\SimpleCache\Exception\CacheException: The directory of the storage does not exist. in /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/AssertTrait.php:110
Stack trace:
#0 /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Driver/File.php(54): Shieldon\SimpleCache\CacheProvider->assertDirectoryWritable()
#1 /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Cache.php(53): Shieldon\SimpleCache\Driver\File->__construct()
#2 /srv/www/site.com/current/web/app/plugins/cache-master/inc/helpers.php(203): Shieldon\SimpleCache\Cache->__construct()
#3 /srv/www/site.com/current/web/app/plugins/cache-master/inc/class-cache-master.php(58): scm_driver_factory()
#4 /srv/www/site.com/current/web/app/plugins/cache-master/cache-master.php(99): Cache_Master->__construct()
#5 /srv/www/site.com/current/web/wp/wp-settin in /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/AssertTrait.php on line 110
Fatal error: Uncaught Shieldon\SimpleCache\Exception\CacheException: The directory of the storage does not exist. in /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/AssertTrait.php:110
Stack trace:
#0 /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Driver/File.php(54): Shieldon\SimpleCache\CacheProvider->assertDirectoryWritable()
#1 /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/Cache.php(53): Shieldon\SimpleCache\Driver\File->__construct()
#2 /srv/www/site.com/current/web/app/plugins/cache-master/inc/helpers.php(203): Shieldon\SimpleCache\Cache->__construct()l
#3 /srv/www/site.com/current/web/app/plugins/cache-master/inc/class-cache-master.php(58): scm_driver_factory()
#4 /srv/www/site.com/current/web/app/plugins/cache-master/cache-master.php(99): Cache_Master->__construct()
#5 /srv/www/site.com/current/web/wp/wp-settin in /srv/www/site.com/current/web/app/plugins/cache-master/vendor/shieldon/simple-cache/src/SimpleCache/AssertTrait.php on line 110

Error: une erreur critique est survenue sur votre site.En apprendre plus sur le débogage de WordPress. une erreur critique est survenue sur votre site.

Can you help?

Thanks.

Wincache is running but not detected

Hello,
I test this Cache Master plugin on Windows OS and saw that this plugin is not detecting the Wincache PHP extension that is normally working fine. Because W3 Total Cache plugin is detecting it well on an other website. So, maybe there is something wrong?
There is no running an other cache plugin on the website where I test Cache Master.
Thanks in advance to let me know when this is solved.
Best Regards.

Memcached and Redis: Unix socket of TCP

Hello,

We can only define TCP socket with Memcached and Redis with IP (‘127.0.0.1’) and port (‘11211’).

It would be great if we can define Unix socket like ‘/var/run/memcached/memcached.sock’.

Do you think you can add this option?

Thanks!

我就是來催更的,呵呵!作者加油了!Cache Master未來可期呀!

最近在多個站點上都使用了Cache Master,效果非常的好!
唯一的遺憾就是不支持同一個服務器下多個 WordPress 站點同時使用Cache Master,特別是使用Memcached驅動的時候!
那個 WordPress 的wp-config.php裏不是有:

define('WP_CACHE_KEY_SALT', 'XXXXXX');

這樣的自定義站點標識嗎?應該是可以支持和解決的!

再次感謝作者辛勤付出的優秀插件。期待更新哦!

Assuming where wp-config.php is located causing failure and PHP warnings

PHP Warning:  fopen(/home/*/public_html/wp-config.php): failed to open stream: No such file or directory in /home/*/public_html/wp-content/plugins/cache-master/inc/admin/functions.php on line 219
PHP Warning:  fgets() expects parameter 1 to be resource, bool given in /home/*/public_html/wp-content/plugins/cache-master/inc/admin/functions.php on line 225
PHP Warning:  fclose() expects parameter 1 to be resource, bool given in /home/*/public_html/wp-content/plugins/cache-master/inc/admin/functions.php on line 233

inc/admin/functions.php line 217:
$wp_config_file = ABSPATH . 'wp-config.php';

Problem occurs when wp-config.php is in parent folder of ABSPATH.

Any auto clear cache option?

I want auto clear cache and preloading cache anyone know how todo? only schedule clear cache should be fine.
thank you.

提个建议:增加发布文章后自动刷新缓存功能

这插件用了 好长时间了,发布新文章后,分类页、标签页、文章页相关文章等其他页,没有及时更新缓存,导致一直没显示新文章

求增加发文章、发布评论、自动更新缓存功能!

求作者邮箱

Excluded URLs not working on Woocommerce

Hi there,

I try to exclude the user's my account login page but it is still being cached. When I try to login to the account from the frontend it just reloads the page and not logging me in.

Support for custom post types

Hi @terrylinooo

I would like to request support for caching the custom post types
(besides page & post which you have written in inc/class-cache-master.php line 147 & 148, for now, temp fix: i have manually edited them in my website). Not an expert but i guess in setting page while displaying you can query registered post types and then once settings are saved, then from the configuration you validate if current post type is flagged for cache or not, which you are already doing :) .

Hoping you would accept this feature request.

Thanks,
prakash

Anomaly when saving exclusion list

Settings - Exclusion - Excluded URL Path List

  1. Remove last line in list textarea
  2. Save settings
  3. Observe the removed last line has reappeared in the textarea
  4. Expected last line not to exist, as before saving

Unwanted debug output

It looks like unnecessary debug output of cache driver id is left into plugin sources, resulting into "Cannot modify header information - headers already sent" warning

Cache-master and query monitor plugin.

Hi, Terry
The first step is to install the cache-master, and the second step is to select the cache driver, such as redis, the third step, storage, errors will occur, please refer to the screenshot.

https://lemp365.tw/cache-master-101/
Cache Master
Version Core: 1.2.0 Plugin: 2.0.0

Query Monitor
Version 1.6.12

I look forward to your reply.

提个建议

是只能用户访问的时候才可以触发生成缓存,且生命周期最多只能设置1天吗?
能不能全部文章都生成一次,到生命周期的时候用户访问再生成缓存给下一个用户访问?
这样做的好处就是所有文章缓存起来后,大家都访问缓存,也就不会触发500 499 502状态了,也就是说不管数据库还是php是不是挂了,一律都是优先访问缓存,尽可能最大化返回200状态给拥护和蜘蛛
生命周期可以自己设置
例如
首页 1天
分类 7天
文章 永久
首页比如现在到期了,有访客去访问一下,这时候还是老缓存,但这时后台因生命周期到期且有新访问会悄悄生成新缓存,下次别的用户的访问时候就是新缓存了

excluded_get_vars排除不生效,多个站点不生效,主域名不生效,多站点模式不生效

作者你好,我在自己的网站上安装了你的插件,我使用的驱动是SQLite,它工作的很好,但是还有以下这些问题:

1.设置的【排除】项,在config.json中有的时候不生效
我设置了这些排除项目:

排除 $_GET 变量
s
search
p

但是有的时候,config.json中的excluded_get_vars为空:
"excluded_get_vars": [],

所以我得手动添加,才能让他生效:
"excluded_get_vars": [
"s",
"search",
"p"
],

2.我测试了一下几乎所有的驱动,例如:SQLite Memcached Apcu Redis,当同一个服务器有多个网站的时候,例如有三个网站:
www.a.com www.b.com www.c.com 使用SQlite驱动可以正常工作,但是如果使用的驱动是:Memcached Apcu Redis ,插件就不能正常工作了,缓存只能缓存其中的一个网站,假如缓存了www.c.com 则访问www.a.com www.b.com 都会跳转到www.c.com

3.在主域名网站不能工作,它能在blog.xx.com的网站上工作,但是如果安装的网站是xx.com 缓存不会生效

4.这个插件不能在多站点(Multisite)模式工作

我想把它安装在我的多站点网站上使用,即在WordPress Multisite模式下使用,我用的是子域名形式的多站点

如主站点是x.com 子站点是www.x.com blog.x.com m.x.com
但是插件在多站点模式下不工作

我想让它在SQLite驱动下可以在上面这些情况下工作,请问可以有什么解决办法吗?谢谢

Bypass cache for Logged in users in expert mode

Hi @terrylinooo

I know this might be too much to ask but would you mind implementing this feature somehow.,
any small trick of either detecting cookies or filter by IP's set provided in admin settings page such that they are always excluded and same can be memcached too for faster processing or any best way you can think.

I hope you can accept this else it becomes tough to continue backend work while the plugin is active, for logged in users. Thank you :)

Regards,
Prakash

cache master seems to conflict with wp rocket

cache master seems to conflict with wp rocket, after using cache master, wp rocket seems to be unable to finish the work, can't cache html files, test 3 websites are the same, 2 servers, cache mode is Memcached and SQLite

Main page excluded if subpage excluded

  1. Exclusion list include line: /mainpage/subpage/ (but not /mainpage/)
  2. Visit /mainpage/ (via logged out browser/user)
  3. Observe the page is not cached (footer or html source comment missing)
  4. Expected /mainpage/ to be cached since it is not excluded

Fatal on WP6.1/PHP8 updating Option/Exclusions

Hi,

Thanks for this great plugin.

I had an Fatal Error while updating excluded urls on WP6/PHP8:

[24-Aug-2022 07:24:04 UTC] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /data/web/myserver/html/oam/wp-content/plugins/cache-master/inc/admin/update-setting.php:267
Stack trace:
#0 /data/web/myserver/html/oam/wp-content/plugins/cache-master/inc/admin/update-setting.php(267): explode()
#1 /data/web/myserver/html/oam/wp-includes/class-wp-hook.php(309): scm_update_exclusion()
#2 /data/web/myserver/html/oam/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 /data/web/myserver/html/oam/wp-includes/plugin.php(476): WP_Hook->do_action()
#4 /data/web/myserver/html/oam/wp-includes/option.php(530): do_action()
#5 /data/web/myserver/html/oam/wp-admin/options.php(322): update_option()
#6 {main}
thrown in /data/web/myserver/html/oam/wp-content/plugins/cache-master/inc/admin/update-setting.php on line 267

Is this plugin still maintained?
Its the only real working Plugin for Memcached......
;-)

Thanks and best regards

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.