How can we disable or enable cache globally in CakePHP?

by kody.wyman , in category: Technology , 3 months ago

How can we disable or enable cache globally in CakePHP?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by rosalinda , 3 months ago

@kody.wyman We don't need to disable all Cache read & writes and to expiration. We can do this using enable() and disable():

1
2
Cache::disable();
Cache::enable();