This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

webcity

  • *****
  • 255 posts
problem with memcache
« on: October 05, 2022, 10:10:56 AM »
Hi,

I'm using Osclass v8.0.2, I've got the latest Memcached installed using PHP 8.0. , the Memcached PHP extension is installed and working OK too.

Is anyone else getting a problem using memcache?

I am using Memcache on another site on the same server that I host my Osclass site, my other site works fine with the same host / port configuration.

When I enable Memcache on Osclass from the config file using the correct host and port settings for my server, I get the error message in my server logs:

Code: [Select]
30751#0: *96180 FastCGI sent in stderr: "PHP message: The Memcached Extension must be loaded to use Memcached Cache.PHP message: Cache memcache NOT SUPPORTED - loaded Object_Cache_default cache" while reading response header from upstream
My PHP configuration for Memcached:
Code: [Select]
memcached
memcached support enabled
Version 3.2.0
libmemcached version 1.0.18
SASL support yes
Session support yes
igbinary support no
json support no
msgpack support no
Directive Local Value Master Value
memcached.compression_factor 1.3 1.3
memcached.compression_threshold 2000 2000
memcached.compression_type fastlz fastlz
memcached.default_binary_protocol Off Off
memcached.default_connect_timeout 0 0
memcached.default_consistent_hash Off Off
memcached.serializer php php
memcached.sess_binary_protocol On On
memcached.sess_connect_timeout 0 0
memcached.sess_consistent_hash On On
memcached.sess_consistent_hash_type ketama ketama
memcached.sess_lock_expire 0 0
memcached.sess_lock_max_wait not set not set
memcached.sess_lock_retries 5 5
memcached.sess_lock_wait not set not set
memcached.sess_lock_wait_max 150 150
memcached.sess_lock_wait_min 150 150
memcached.sess_locking On On
memcached.sess_number_of_replicas 0 0
memcached.sess_persistent Off Off
memcached.sess_prefix memc.sess.key. memc.sess.key.
memcached.sess_randomize_replica_read Off Off
memcached.sess_remove_failed_servers Off Off
memcached.sess_sasl_password no value no value
memcached.sess_sasl_username no value no value
memcached.sess_server_failure_limit 0 0
memcached.store_retry_count 0 0

Can anyone suggest a solution?

Many thanks
« Last Edit: October 05, 2022, 10:17:52 AM by webcity »

*

MB Themes

Re: problem with memcache
« Reply #1 on: October 07, 2022, 09:26:44 AM »
MemCache and MemCached should be 2 different libraries. Consider that.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

webcity

  • *****
  • 255 posts
Re: problem with memcache
« Reply #2 on: October 11, 2022, 05:52:06 AM »
Hi,

Thanks for the reply.

I don't think memcache is supported anymore most people use memcached.

I decided to install apcu instead, which seems to help with the site loading speed.

Thanks for your help :-)

*

MB Themes

Re: problem with memcache
« Reply #3 on: October 11, 2022, 03:55:09 PM »
@webcity
I use memcache.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 485 posts
Re: problem with memcache
« Reply #4 on: October 11, 2022, 11:40:37 PM »
Here is Opcache doing a nice job for the moment on php8.1
Website speed is great now. Pagespeed 99% desktop and 67% mobile. Loads every page in less than 1sec...
Now I only need listings witch is the hardest part. Competition is very large in a small country like Belgium....
« Last Edit: October 11, 2022, 11:47:01 PM by mwindey »

*

MB Themes

Re: problem with memcache
« Reply #5 on: October 12, 2022, 07:35:48 AM »
@mwindey
That's great. Do you have comparison of loading time with and without opcache?
Don't you get any warnings on php 8.1? We've not been testing this one yet.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on October 17, 2022, 01:34:47 PM
*

mwindey

  • *****
  • 485 posts
Re: problem with memcache
« Reply #6 on: October 12, 2022, 11:03:38 AM »
@MB Themes,

With Opcache pagespeed insights on desktop is 99% - No Opcache 95%
Attached is cache plugin result. First is loading main page without - second with Opcache.
Offcourse php 8.1 throws a lot off warnings but mainly from radius plugin, backoffice plugin, history logger and spam plugin...
Code: [Select]
https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.523208 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Trying to access array offset on value of type null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/backoffice_manager/index.php on line 424\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.572066 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined array key 0 in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 316\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.572093 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "geometry" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 316\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.572102 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "location" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 316\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.572121 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "lat" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 316\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.572129 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined array key 0 in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 317\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.572127 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "geometry" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 317\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.572135 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "location" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 317\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.572143 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "lng" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 317\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:03.575384 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined array key "s_category" in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/history_logger/functions.php on line 22\n, referer: https://domain.be/item/edit/285/
[Tue Oct 12 10:22:35.073605 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined variable $mail_block in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/spam/functions.php on line 282\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.733289 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined variable $mail_block in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/spam/functions.php on line 282\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.738458 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined variable $status in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/backoffice_manager/index.php on line 424\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.738487 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Trying to access array offset on value of type null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/backoffice_manager/index.php on line 424\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.740374 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined array key "latitude" in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 550\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.763320 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined array key 0 in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 316\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.763363 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "geometry" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 316\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.763378 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "location" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 316\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.763391 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "lat" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 316\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.763404 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined array key 0 in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 317\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.763416 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "geometry" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 317\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.763428 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "location" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 317\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.763440 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Attempt to read property "lng" on null in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/rad_search/index.php on line 317\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:35.768376 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined array key "s_category" in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/history_logger/functions.php on line 22\n, referer: https://domain.be/item/new
[Tue Oct 12 10:22:49.849219 2022] [lsapi:warn]   [host domain.be] Backend log: PHP Warning:  Undefined array key "s_category" in /home/u44**3p******/domains/domain.be/public_html/oc-content/plugins/history_logger/functions.php on line 22\n, referer: https://domain.be/user/items
« Last Edit: October 12, 2022, 11:06:32 AM by mwindey »

*

MB Themes

Re: problem with memcache
« Reply #7 on: October 12, 2022, 01:09:41 PM »
Very nice ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Lida phanora

  • **
  • 25 posts
Re: problem with memcache
« Reply #8 on: October 16, 2022, 03:11:30 PM »
how i can assign OSC_CACHE for Opcache?

*

MB Themes

Re: problem with memcache
« Reply #9 on: October 17, 2022, 01:34:33 PM »
@Lida
Opcache is PHP feature, does not need any setup in Osclass env.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Lida phanora

  • **
  • 25 posts
Re: problem with memcache
« Reply #10 on: October 30, 2022, 02:33:36 PM »
@Lida
Opcache is PHP feature, does not need any setup in Osclass env.
so it's mean just enable in PHP feature?

*

mwindey

  • *****
  • 485 posts
Re: problem with memcache
« Reply #11 on: October 30, 2022, 04:30:45 PM »
@Lida phanora

Correct! Enable only in php settings but do not mix with memcache/memcached or other caches.
« Last Edit: October 30, 2022, 04:35:12 PM by mwindey »