Changeset 9944

Show
Ignore:
Timestamp:
11/16/08 03:18:34 (2 months ago)
Author:
afz
Message:

start to add caching to Phoo gadget

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/0.8/jaws/html/gadgets/Phoo/AdminModel.php

    r9795 r9944  
    470470                    return $rs; 
    471471                } 
     472 
     473                //remove cached files 
     474                $GLOBALS['app']->Cache->delete('Phoo', 'ViewImage', array($album, $id)); 
    472475            } 
    473476        } 
  • branches/0.8/jaws/html/gadgets/Phoo/HTML.php

    r9843 r9944  
    337337            $t->ParseBlock('ViewImage/exif'); 
    338338        } 
    339  
    340339        $t->ParseBlock('ViewImage'); 
     340 
     341        //cache output of this action 
     342        $GLOBALS['app']->Layout->SetCurrentActionCacheable(); 
     343 
    341344        return $t->Get(); 
    342345    }