PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, March 13, 2022

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

 March 13, 2022     caching, cakephp, cakephp-4.x     No comments   

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

  • Cookbook > Appendices > 3.0 Migration Guide > CacheHelper Removed
  • Awesome CakePHP > Caching


Answered By - ndm
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

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

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing