Files
grzanieplus.pl/apps/frontend/lib/stFastCacheController.class.php
2025-03-12 17:06:23 +01:00

26 lines
534 B
PHP

<?php
/**
* @author Marek Jakubowicz <marek.jakubowicz@sote.pl>
*/
/**
* stFastCache controller
*/
class stFastCacheController
{
/**
* Disable Fast cache for current session
*/
static public function disable()
{
sfContext::getInstance()->getResponse()->setCookie('fastcache', 'disabled');
}
/**
* Enable Fast cache for current session
*/
static public function enable()
{
sfContext::getInstance()->getResponse()->setCookie('fastcache', 'enabled');
}
}