Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#361 closed defect (invalid)

Couldn't making separate xcache variable cache for each php-fpm pool

Reported by: ntman Owned by: moo
Priority: major Milestone: undecided
Component: cacher Version: 3.2.0
Keywords: Cc:
Application: PHP Version:
Other Exts: SAPI: FastCGI
Probability: Always Blocked By:
Blocking:

Description

Couldn't making separate xcache variable cache for each php-fpm pool

This is very pitiful limitation. Because I can't divide variable cache by several users for shared hosting and etc.

Also expected that for each pool I can setup own xcache password.

Example:

# cat /etc/php-fpm.d/poligon.conf
[poligon]
listen.owner = nginx
listen.group = nginx
listen = /var/run/php-fpm/poligon.sock

user = poligon
group = poligon
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
;slowlog = /var/www/mikhail/logs/php-fpm-slow.log
;php_admin_value[error_log] = /var/www/mikhail/logs/php-fpm-error.log
php_admin_flag[log_errors] = on
; Set session path to a directory owned by process user
php_value[session.save_handler] = files
php_value[session.save_path] = /tmp
php_value[soap.wsdl_cache_dir] = /tmp
; xCache administration
php_value[xcache.admin.user] = "poligon"
php_value[xcache.admin.pass] = "0c51a8dd180d8a3360c88de27057c587"

Change History (5)

comment:1 Changed 2 years ago by moo

  • Resolution set to invalid
  • Status changed from new to closed

xcache.var_namespace_mode = 0
xcache.var_namespace = some different string, for each pool

re-open this ticket if it's not working

comment:2 Changed 2 years ago by ntman

This is configured through the php-fpm pool so?

php_value[xcache.var_namespace] = poligon

comment:3 Changed 2 years ago by ntman

I see another problem. How get xcache admin interface for each user only on his own var_namespace?

comment:4 Changed 2 years ago by moo

actually xcache.var_namespace (hard limit) cannot be changed for different pool. maybe you should use pre include file that call xcache_set_namespace("something") (which is a soft limit)

admin interface is for system admin, not for your user, however you can adopt the code, have your own login access, and let xcache module trust your code by providing admin password in code like config.example.php

this is not a place to ask questions. please use google groups.

comment:5 Changed 2 years ago by ntman

soft limit is not suitable for shared hosting
needed another solution with hard limitation for several pools
and of course needed admin interface for each isolated pool

May continue here:
I ask this question a long time ago:
https://groups.google.com/forum/#!topic/xcache/v-T8r6xgGKY

Note: See TracTickets for help on using tickets.