How can we disable or enable cache globally in CakePHP?

Member

kody.wyman

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

How can we disable or enable cache globally in CakePHP?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

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