ndejong / cakephpautocacheplugin Goto Github PK
View Code? Open in Web Editor NEWCakephpAutocachePlugin is a CakePHP 2.x Plugin that makes query caching as easy as adding a 'autocache'=>true condition to your Model query
CakephpAutocachePlugin is a CakePHP 2.x Plugin that makes query caching as easy as adding a 'autocache'=>true condition to your Model query
After upgrading to PHP 5.4 errors due to stricter settings like this appear.
Declaration of AutocacheBehavior::afterFind() should be compatible with ModelBehavior::afterFind(Model $model, $results, $primary = false) [APP\Plugin\Autocache\Model\Behavior\AutocacheBehavior.php, line 16
Is there a way to cache findBy"field" ?
I'm getting an undefined index:
Notice (8): Undefined index: database [CORE/Cake/Model/Datasource/DataSource.php, line 102]
This happens once the cache has been charged. I don't see it when the item is NOT in the cache.
Code Context
DataSource::listSources() - CORE/Cake/Model/Datasource/DataSource.php, line 102
Model::setSource() - CORE/Cake/Model/Model.php, line 1028
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3238
Model::find() - CORE/Cake/Model/Model.php, line 2460
CoachesController::view() - APP/Controller/CoachesController.php, line 13
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 473
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 107
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 89
[main] - ROOT/index.php, line 98
Hi i want to implement autoCache for all my queries, and i am adding auto_cache => true in my beforeFind() but it is not working
Hi,
Im working on CakePHP Version 2.2.3
I got this with models having translate behavior :
Fatal error: Call to undefined method AutocacheSource::name() in /var/www/ewibox/dev/lib/Cake/Model/Model.php on line 3068
And sometimes this :
Fatal error: Call to undefined method AutocacheSource::identifier() in /var/www/ewibox/dev/lib/Cake/Model/Behavior/TranslateBehavior.php on line 259
I'have tried to install this plugin into 2.5.6 but the Test unit give me always errors. It is incompatiility with this version of cake? The class AutocacheBehavior and AutocachePluginTest give me several errors...
Thanks!
Are you still using it?
If you add a composer based approach we could easily add it to https://github.com/FriendsOfCake/awesome-cakephp
Would be good to let others know about what caching solutions are out there.
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.