- JIREI NIGHT -
                       “                             ”
                              By Takahiro Fujiwara



                Po wered by C a k ePHP




2010   10   1
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



                 $this->element(‘navi’, array(‘cache’ => array(‘key’ =>
                 ‘navi’, ‘time’ => ‘+1 hours’));


2010   10   1
2010   10   1
CakePHP

                          Dispacher

                          CakePHP

                URL       Router


2010   10   1
CakePHP

                webroot tmp/cache    *.html




                               /    cron


2010   10   1
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
:
                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



                              SQL


2010   10   1
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
2010   10   1
2010   10   1
2010   10   1
CakePHP + MySQL Fulltext Search + MeCab



                1         + JSON




                MySQL +


2010   10   1
2010   10   1

PHP Matsuri JIREI NIGHT お知らせメール