diff Options.inc @ 99:d98e315308cd

Improved caching of flag and sitemap.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Sun, 14 Sep 2014 21:11:27 +0200
parents 2a8e2f571b24
children df158368051e
line wrap: on
line diff
--- a/Options.inc	Fri Oct 19 01:36:22 2012 +0200
+++ b/Options.inc	Sun Sep 14 21:11:27 2014 +0200
@@ -1,5 +1,13 @@
 <?php
 /**
+ */
+abstract class Cacheable {
+  const NO = 0;
+  const YES = 1;
+  const UNDETERMINED = -1;
+}
+
+/**
  * Contains alle configurable parameters, and "globals"
  *
  * @author Tom Fredrik Blenning Klaussen
@@ -16,7 +24,7 @@
   private $basePath;
   private $flagUrl;
   private $baseUrl;
-  private $cacheable = True;
+  private $cacheable = Cacheable::YES;
 
   /**
    * Gets the default language
@@ -41,7 +49,7 @@
   /**
    *  Sets wether or not this page may be cached
    *
-   * @param $cacheable bool
+   * @param $cacheable Cacheable
    */
   function setCacheable($cacheable)
   {
@@ -51,7 +59,7 @@
   /**
    * Gets wether or not this page may be cached
    *
-   * @return bool, default is True
+   * @return Cacheable, default is YES
    */
   function getCacheable()
   {