Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to disable caching completely in Cakephp

    • 0
    • 2
    • 2
    • 0
    • 0
    • 0
    • 0
    • 0
    • 2.71k
    Comment on it

    To completely disable caching application wide, you will have to edit /app/config/core.php and change the line

    Configure::write(Cache.disable, true);
    

    This line is commented by default and you will have to remove comment to disable caching. If this code is commented in core.php file that means your cache system is enabled in your site So if you want to disable just remove comments from this code, It will disable site wide cache.

    In CakePHP 2.5 disable cache in CakePHP via

    Configure::write('debug', 2);
    Configure::write("Cache.disable", true);
    in app/Config/core.php

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: