how do I cache multiple databases (dynamic query) |
Suggestion: don't use caching if you don't fully understand how it works.
CI's cache system works by creating a folder for the controller+method and is a very strange implementation imo. Especially if you have multiple models used across different controllers. This isn't so much of an issue if your data doesn't change that often - but if it does change through CRUD functions you'll have to make some house keeping functions to delete the cache files associated with all the controller+methods that query a specific table to which the CRUD operations were performed on; or delete all the cache files (inefficient). Why the cache system doesn't work by making folders per database table is beyond me. Just thought I'd bring your attention to these factors. |
Messages In This Thread |
how do I cache multiple databases (dynamic query) - by admin0 - 07-05-2018, 07:28 AM
RE: how do I cache multiple databases (dynamic query) - by php_rocs - 07-05-2018, 08:34 AM
RE: how do I cache multiple databases (dynamic query) - by admin0 - 07-05-2018, 10:11 AM
RE: how do I cache multiple databases (dynamic query) - by php_rocs - 07-05-2018, 12:06 PM
RE: how do I cache multiple databases (dynamic query) - by Pertti - 07-11-2018, 06:11 AM
RE: how do I cache multiple databases (dynamic query) - by alamowais - 07-24-2018, 09:55 AM
RE: how do I cache multiple databases (dynamic query) - by excellentwebworld - 08-01-2018, 04:22 AM
RE: how do I cache multiple databases (dynamic query) - by alex.fagard - 08-06-2018, 12:37 AM
|