How can we disable or enable cache globally in CakePHP?

by kody.wyman , in category: Technology , a year ago

How can we disable or enable cache globally in CakePHP?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by rosalinda , a year 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();