Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

clear_routes.php
Go to the documentation of this file.
1 <?php
15 class ezpRestRoutesCacheClear
16 {
21 public static function clearCache()
22 {
23 $expiryHandler = eZExpiryHandler::instance();
24 if( $expiryHandler->hasTimestamp( ezpRestRouter::ROUTE_CACHE_KEY ) )
25 {
26 $expiryHandler->setTimestamp( ezpRestRouter::ROUTE_CACHE_KEY, 0 );
27 $expiryHandler->store();
28 }
29 }
30
31 public static function purgeCache()
32 {
33 self::clearCache();
34 }
35 }
ezpRestRouter\ROUTE_CACHE_KEY
const ROUTE_CACHE_KEY
Definition: router.php:14
ezpRestRoutesCacheClear
Definition: clear_routes.php:16
ezpRestRoutesCacheClear\purgeCache
static purgeCache()
Definition: clear_routes.php:31
ezpRestRoutesCacheClear\clearCache
static clearCache()
Definition: clear_routes.php:21
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.