Sunday, March 13, 2022

[FIXED] How to make view cache unlimited in cakephp 4.x

Issue

I'm trying to enable caching for my site

enable cahe in bootstrap file but /tmp/views is always empty

thank you


Solution

There is no view caching anymore in CakePHP, it has been dropped ever since CakePHP 3.

You can use for example a caching proxy like Varnish, or a CakePHP plugin like dereuromark/cakephp-cache, or implement your own caching solution. If you only need to partially cache views, look into caching elements.

See also



Answered By - ndm

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.