winzou / cachebundle Goto Github PK
View Code? Open in Web Editor NEWBundle is deprecated. Use https://github.com/doctrine/DoctrineCacheBundle instead.
Bundle is deprecated. Use https://github.com/doctrine/DoctrineCacheBundle instead.
Hi,
how to setup memcache driver?
Especially how to set server and port?
Unfortunatly I must append some code - addServer - to __construct like this:
public function __construct(array $options = array())
{
// Memcache instance is not required, we can create one
if (!isset($options['memcache']) || !$options['memcache'] instanceof Memcache) {
$options['memcache'] = new Memcache;
$options['memcache']->addServer('localhost', 11211);
}
$this->setMemcache($options['memcache']);
}
Is there any better way?
The deleteDeads() function in the LifetimeFileCache uses the isValidLife check wrong. Therefore, not the deads, but the stil valid files are deleted.
hi,, how to set the max life time for file cache ??
Hi !
This bundle is great for people who want to handle cache themselves.
I'm using lifetimefile to cache some data. But, I need to cache something like 50 000 static web pages. And I don't want this to be stored in one folder.
So I was thinking about a way to handle subfolders.
Something like :
$cache->save('/my/subfolder/cacheContent', $content);
Could make the deal.
I tried this but it doesn't work because of non created folders. So it will need some modifications in LifetimeFileCache.php
Are you open to this ? So I can make a pull request sometime.
the type: cachedump
has been removed from the memcache daemon due to security reasons.
http://php.net/manual/en/memcache.getextendedstats.php
it is still used in the code (line 86) and will give notices like:
Message: MemcachePool::getextendedstats(): Server 127.0.0.1 (tcp 11211, udp 0) failed with: Network timeout (0)
Hello,
I need a liteftime support for my cache, but I see it is not currently supported (the information is lost when given to FileCache::save()).
Would it be possible to handle it? Or is it better for me to do a new backend and pull it to you? (If it not done yet when you read this.)
Project is pretty old and it deserves a stable version. Thanks!
In DependencyInjection\Configuration we define the default values for all the parameters. But it seems that it's not taken into account when parsing the configuration ($config in winzouCacheExcention is empty when winzou_cache is not defined in the config.yml).
How to make these default values work?
The service winzou_cache.cache (cf services.yml) is supposed to return a xxxCache, but we don't know which one in advance. So we can't define the 'class' attribute for this service, and the use of 'abstract: true' is not clear at all.
How to handle this ?
For the moment, we can only instanciate FileCache instance, which is quite poor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.