Add "groups" to PlFilter.
[platal.git] / classes / plglobals.php
index a3e62b2..399a8a6 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2009 Polytechnique.org                              *
+ *  Copyright (C) 2003-2010 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -106,6 +106,13 @@ class PlGlobals
     public $cookie_ns = 'ORG';
     public $cookie_path = '/';
 
+    /** Cache duration for static and dynamic cacheable content generated by
+     * plat/al. Defaults to a week for static content, and an hour for dynamic
+     * content.
+     */
+    public $static_cache_duration = 604800;
+    public $dynamic_cache_duration = 3600;
+
     /** You must give a list of file to load.
      * The filenames given are relatives to the config path of your plat/al installation.
      */
@@ -185,10 +192,10 @@ class PlGlobals
     /** Change dynamic config file
      * @param conf array of keys and values to add or replace
      * @param category name of category to change
-     * 
+     *
      * Opens the dynamic conf file and set values from conf in specified
      * category. Updates config vars too.
-     */ 
+     */
     public function changeDynamicConfig($conf, $category = 'Core')
     {
         $dynamicfile = $this->spoolroot.'/spool/conf/platal.dynamic.conf';
@@ -231,7 +238,7 @@ class PlGlobals
                     if (isset($conflower[strtolower($k)])) {
                         $array[$same][$k] = $v;
                     }
-                } 
+                }
             }
         }
         // writes the file over