- JIREI NIGHT -
                       “                             ”
                              By Takahiro Fujiwara
...
2010   10   1
Introduce Myself




2010   10   1
2010   10   1
2010   10   1
2010   10   1
2010   10   1
RSS


2010   10   1
2010   10   1
2010   10   1
Live Demo




2010   10   1
2010   10   1
PHP

                CakePHP




2010   10   1
3




2010   10   1
webroot

                 webroot/*.html

                tmp

                 tmp/cache/[domain]/*.html



             ...
2010   10   1
CakePHP

                          Dispacher

                          CakePHP

                URL       Router


2010  ...
CakePHP

                webroot tmp/cache    *.html




                               /    cron


2010   10   1
webroot             tmp/cache/           CakePHP


            2000                                               Bench Ma...
:
                webroot




2010   10   1
webroot

                 Matt Curry’s HTML Cache

                   http://github.com/mcurry/html_cache




2010   10   1
2010   10   1
&




2010   10   1
2010   10   1
MailMessage, TwitterMessage ...e.t.c

                  MessageModel




2010   10   1
TwitterComponent, EmailComponent ...e.t.c



                                  ,               ...e.t.c


2010   10   1
1.

                2. (           )

                3.

                4.     /   /


2010   10   1
SQL

                CakePHP
                SQL




2010   10   1
SQL




2010   10   1
SQL

                 conditions
                 SQL WHERE

                 DboDatasource::cacheMethods



             ...
class AppShell extends Shell {
                  var $cacheMethods = false;
                  function initialize () {
   ...
2010   10   1
2010   10   1
2010   10   1
CakePHP + MySQL Fulltext Search + MeCab



                1         + JSON




                MySQL +


2010   10   1
2010   10   1
Upcoming SlideShare
Loading in …5
×

PHP Matsuri JIREI NIGHT お知らせメール

12,316 views
12,246 views

Published on

PHP MatsuriのJIREI NIGHTの発表資料です。
CakePHPで作った"お知らせメール ( http://www.oshirase-mail.jp )"の発表です。
CakePHPのキャッシュやシェル機能の活用事例を載せてあります。

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
12,316
On SlideShare
0
From Embeds
0
Number of Embeds
6,075
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

PHP Matsuri JIREI NIGHT お知らせメール

  1. 1. - JIREI NIGHT - “ ” By Takahiro Fujiwara Po wered by C a k ePHP 2010 10 1
  2. 2. 2010 10 1
  3. 3. Introduce Myself 2010 10 1
  4. 4. 2010 10 1
  5. 5. 2010 10 1
  6. 6. 2010 10 1
  7. 7. 2010 10 1
  8. 8. RSS 2010 10 1
  9. 9. 2010 10 1
  10. 10. 2010 10 1
  11. 11. Live Demo 2010 10 1
  12. 12. 2010 10 1
  13. 13. PHP CakePHP 2010 10 1
  14. 14. 3 2010 10 1
  15. 15. webroot webroot/*.html tmp tmp/cache/[domain]/*.html $this->element(‘navi’, array(‘cache’ => array(‘key’ => ‘navi’, ‘time’ => ‘+1 hours’)); 2010 10 1
  16. 16. 2010 10 1
  17. 17. CakePHP Dispacher CakePHP URL Router 2010 10 1
  18. 18. CakePHP webroot tmp/cache *.html / cron 2010 10 1
  19. 19. webroot tmp/cache/ CakePHP 2000 Bench Mark 1761.6 124.9 1.5 Apache Bench 1500 1142.7 -c 10 -m 100 1000 Server 500 14.1 VMware + 0 Ubuntu 9.10 Requests per second [#/sec] 2010 10 1
  20. 20. : webroot 2010 10 1
  21. 21. webroot Matt Curry’s HTML Cache http://github.com/mcurry/html_cache 2010 10 1
  22. 22. 2010 10 1
  23. 23. & 2010 10 1
  24. 24. 2010 10 1
  25. 25. MailMessage, TwitterMessage ...e.t.c MessageModel 2010 10 1
  26. 26. TwitterComponent, EmailComponent ...e.t.c , ...e.t.c 2010 10 1
  27. 27. 1. 2. ( ) 3. 4. / / 2010 10 1
  28. 28. SQL CakePHP SQL 2010 10 1
  29. 29. SQL 2010 10 1
  30. 30. SQL conditions SQL WHERE DboDatasource::cacheMethods SQL 2010 10 1
  31. 31. class AppShell extends Shell { var $cacheMethods = false; function initialize () { $db =& ConnectionManager::getDatasource(‘default’); $db->cacheMethods = $this->cacheMethods; } } App::import(‘Shell’, ‘libs/AppShell’); class HogeHogeShell extends AppShell { } 2010 10 1
  32. 32. 2010 10 1
  33. 33. 2010 10 1
  34. 34. 2010 10 1
  35. 35. CakePHP + MySQL Fulltext Search + MeCab 1 + JSON MySQL + 2010 10 1
  36. 36. 2010 10 1

×