Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tagging does not work with memcache #327

Closed
cotthemh opened this issue Jul 21, 2016 · 5 comments
Closed

tagging does not work with memcache #327

cotthemh opened this issue Jul 21, 2016 · 5 comments
Assignees

Comments

@cotthemh
Copy link

when you use tagging with the memcache driver this does not work you get a driver error:

Type: phpFastCache\Exceptions\phpFastCacheDriverException
Message: SQLITE is not installed, cannot continue.
File: /var/www/nelosproject/dist/api/vendor/phpfastcache/phpfastcache/src/phpFastCache/Drivers/sqlite.php
Line: 73
Trace
#0 /var/www/nelosproject/dist/api/vendor/phpfastcache/phpfastcache/src/phpFastCache/CacheManager.php(91): phpFastCache\Drivers\sqlite->__construct(Array)
#1 /var/www/nelosproject/dist/api/vendor/phpfastcache/phpfastcache/src/phpFastCache/CacheManager.php(128): phpFastCache\CacheManager::getInstance('Sqlite', Array)
#2 /var/www/nelosproject/dist/api/vendor/phpfastcache/phpfastcache/src/phpFastCache/Core/DriverAbstract.php(672): phpFastCache\CacheManager::__callStatic('Sqlite', Array)
#3 /var/www/nelosproject/dist/api/vendor/phpfastcache/phpfastcache/src/phpFastCache/Core/DriverAbstract.php(672): phpFastCache\CacheManager::Sqlite(Array)
#4 /var/www/nelosproject/dist/api/vendor/phpfastcache/phpfastcache/src/phpFastCache/Core/DriverAbstract.php(695): phpFastCache\Core\DriverAbstract->_tagCaching()
#5 /var/www/nelosproject/dist/api/vendor/phpfastcache/phpfastcache/src/phpFastCache/Core/DriverAbstract.php(116): phpFastCache\Core\DriverAbstract->_handleTags('testcache/1', 600, Array)
#6 /var/www/nelosproject/dist/api/vendor/phpfastcache/phpfastcache/src/phpFastCache/Core/DriverAbstract.php(689): phpFastCache\Core\DriverAbstract->set('testcache/1', '{"info":{"Total...', 600, Array)
#7 /var/www/nelosproject/dist/api/v1/articles.php(153): phpFastCache\Core\DriverAbstract->setTags('testcache/1', '{"info":{"Total...', 600, Array)

@Geolim4
Copy link
Member

Geolim4 commented Jul 21, 2016

Hello,

This is most likely because your php installation does not include Pdo_Sqlite.
Check it out and try again later.

Cheers,
Georges

@cotthemh
Copy link
Author

ye i looked into the code, actually tags only work when you install sql-lite, i think you should put that in the doc somewhere, because now its confusing, also im not sure i want to install sql lite on my server.

what would give the fastest results using phpfastcache? now i use memcache but maybe something else is faster (its just standalone)

@Geolim4
Copy link
Member

Geolim4 commented Jul 21, 2016

We will specify this in the V4 branch, anyway the V5 will fix this problem because the tags are stored in the same driver than items :)

@Geolim4 Geolim4 closed this as completed Jul 21, 2016
@cotthemh
Copy link
Author

Ok, great plan, so which driver you recommend on a server with plenty of memory? I want something ultra fast

Thx:)

H

@Geolim4
Copy link
Member

Geolim4 commented Jul 21, 2016

Ssdb and Redis are both great and very efficient !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants