我想在zend框架中使用xcache來緩存來自Zend_Db_Table_Abstract的元數據,以便每個表只能調用一次描述查詢。當實現了XCache到我的引導和運行應用程序,我被帶有以下錯誤:Xcache var_size錯誤
Warning: xcache_get() [function.xcache-get]: xcache.var_size is either 0 or too small to enable var data caching in /home/randall/htdocs/lib/Zend/Cache/Backend/Xcache.php on line 95.
我已經在我的php.ini調整設置:
; XCACHE
626 [xcache-common]
627 zend_extension=/usr/lib/php5/20060613/xcache.so
628
629 [xcache-admin]
630 xcache.admin.enable_auth = On
631 xcache.admin.user = "user"
632 xcache.admin.password = "********"
633
634 [xcache]
635 xcache.shm.scheme = "mmap"
636 xcache.size = 128M
637 xcache.count = 4
638 xcache.slots = 8K
639 xcache.ttl = 0
640 xcache.gc_interval = 0
641
642 xcache.var_size = 64M
643 xcache.var_count = 1
644 xcache.var_slots = 8K
645 xcache.var_ttl = 0
646 xcache.var_maxttl = 0
647 xcache.var_gc_interval = 300
648 xcache.test = Off
649
650 xcache.readonly_protection = Off
651 xcache.mmap_path = "/tmp/xcache"
652 xcache.coredump_directory = ""
653
654 xcache.cacher = On
655 xcache.stat = On
656 xcache.optimizer = Off
657
658 [xcache-coverager]
659 xcache.coverager = On
660 xcache.coveragedump_directory = ""
,但我仍然繼續無論我將xcache.var_size參數設置爲什麼,都會得到錯誤。這發生在xcache 1.2.2和1.3.0上。任何幫助,將不勝感激。
另請參閱:http://drupal.org/node/570264 – kenorb 2012-08-07 13:08:28
XCache錯誤:http://xcache.lighttpd.net/ticket/228 – kenorb 2012-08-07 13:19:16