Guest User

Untitled

a guest
Oct 20th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. diff --git a/full stack/php/cake 1.2/app/config/core.php b/full stack/php/cake 1.2/app/config/core.php
  2. index 37d6b07..295eb0a 100644
  3. --- a/full stack/php/cake 1.2/app/config/core.php
  4. +++ b/full stack/php/cake 1.2/app/config/core.php
  5. @@ -79,7 +79,7 @@
  6. * or in each action using $this->cacheAction = true.
  7. *
  8. */
  9. - //Configure::write('Cache.check', true);
  10. + Configure::write('Cache.check', true);
  11. /**
  12. * Defines the default error type when using the log() function. Used for
  13. * differentiating error logging and debugging. Currently PHP supports LOG_DEBUG.
  14. @@ -148,7 +148,7 @@
  15. * CakePHP session IDs are also regenerated between requests if
  16. * 'Security.level' is set to 'high'.
  17. */
  18. - Configure::write('Security.level', 'high');
  19. + Configure::write('Security.level', 'medium');
  20. /**
  21. * A random string used in security hashing methods.
  22. */
  23. @@ -241,5 +241,4 @@
  24. * ));
  25. *
  26. */
  27. - Cache::config('default', array('engine' => 'File'));
  28. ?>
  29. diff --git a/full stack/php/cake 1.2/app/controllers/hellos_controller.php b/full stack/php/cake 1.2/app/controllers/hellos_controller.php
  30. index b14717d..43b87e3 100644
  31. --- a/full stack/php/cake 1.2/app/controllers/hellos_controller.php
  32. +++ b/full stack/php/cake 1.2/app/controllers/hellos_controller.php
  33. @@ -3,6 +3,8 @@ class HellosController extends AppController {
  34.  
  35. var $name = 'Hellos';
  36. var $uses = 'Hello';
  37. + var $helpers = array('Cache');
  38. + var $cacheAction = "5 minutes";
  39.  
  40. // index action: default view
  41. function index() {
  42. diff --git a/full stack/php/cake 1.3/app/config/core.php b/full stack/php/cake 1.3/app/config/core.php
  43. index d7d6629..df784a3 100644
  44. --- a/full stack/php/cake 1.3/app/config/core.php
  45. +++ b/full stack/php/cake 1.3/app/config/core.php
  46. @@ -48,7 +48,7 @@
  47. * Configure::write('log', E_ERROR | E_WARNING);
  48. * Configure::write('log', E_ALL ^ E_NOTICE);
  49. */
  50. - Configure::write('log', true);
  51. + Configure::write('log', E_ERROR);
  52.  
  53. /**
  54. * Application wide charset encoding
  55. @@ -102,7 +102,7 @@
  56. * or in each action using $this->cacheAction = true.
  57. *
  58. */
  59. - //Configure::write('Cache.check', true);
  60. + Configure::write('Cache.check', true);
  61.  
  62. /**
  63. * Defines the default error type when using the log() function. Used for
  64. @@ -300,4 +300,4 @@
  65. * ));
  66. *
  67. */
  68. - Cache::config('default', array('engine' => 'File'));
  69. +?>
  70. \ No newline at end of file
  71. diff --git a/full stack/php/cake 1.3/app/controllers/hellos_controller.php b/full stack/php/cake 1.3/app/controllers/hellos_controller.php
  72. index b14717d..148905d 100644
  73. --- a/full stack/php/cake 1.3/app/controllers/hellos_controller.php
  74. +++ b/full stack/php/cake 1.3/app/controllers/hellos_controller.php
  75. @@ -3,7 +3,8 @@ class HellosController extends AppController {
  76.  
  77. var $name = 'Hellos';
  78. var $uses = 'Hello';
  79. -
  80. + var $helpers = array('Cache');
  81. + var $cacheAction = "5 minutes";
  82. // index action: default view
  83. function index() {
  84. echo "Hello World!";
Add Comment
Please, Sign In to add comment