Ignore:
Timestamp:
Jul 27, 2015 7:56:08 AM (9 years ago)
Author:
anonymous
Message:

Improved module maker validation output. Allow disabling cache at run time for ACL. Added ACL getList() method. Improved ACL CLI listing. Fixed app boomerang array initialization. Now retaining identical boomerang URLs if the key is different. Added a maximum boomerang time. Added a way to disable cache per request through a query string. Added validator isDecimal() method. Added disableSelectOptions() HTML method. Added getGravatarURL() method. Change how navigation page array is managed. Updated navigation currentPage() method to test an array of URLs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Cache.inc.php

    r523 r534  
    2626 * Provides an API for storing a limited amount of data
    2727 * intended to have a short lifetime in a user's session.
     28 *
     29 * Disable cache per-request by adding '_disable_cache=1' to a GET or POST parameter.
    2830 *
    2931 * @author  Quinn Comendant <quinn@strangecode.com>
     
    8082        if (true !== $app->getParam('enable_session')) {
    8183            // Force disable the cache because there is no session to save to.
    82             $app->logMsg('Cache disabled, enable_session is false.', LOG_DEBUG, __FILE__, __LINE__);
     84            $app->logMsg('Cache disabled, enable_session != true.', LOG_DEBUG, __FILE__, __LINE__);
    8385            $this->setParam(array('enabled' => false));
    8486        } else if (!isset($_SESSION['_cache'][$this->_ns])) {
     
    154156        $app =& App::getInstance();
    155157
    156         if (true !== $this->getParam('enabled')) {
     158        if (true !== $this->getParam('enabled') || getFormData('_disable_cache')) {
    157159            $app->logMsg(sprintf('Cache disabled, not saving data.', null), LOG_DEBUG, __FILE__, __LINE__);
    158160            return false;
     
    207209        $app =& App::getInstance();
    208210
    209         if (true !== $this->getParam('enabled')) {
     211        if (true !== $this->getParam('enabled') || getFormData('_disable_cache')) {
    210212            $app->logMsg(sprintf('Cache disabled, not getting data.', null), LOG_DEBUG, __FILE__, __LINE__);
    211213            return false;
     
    236238        $app =& App::getInstance();
    237239
    238         if (true !== $this->getParam('enabled')) {
     240        if (true !== $this->getParam('enabled') || getFormData('_disable_cache')) {
    239241            $app->logMsg(sprintf('Cache disabled on exist assertion.', null), LOG_DEBUG, __FILE__, __LINE__);
    240242            return false;
     
    254256        $app =& App::getInstance();
    255257
    256         if (true !== $this->getParam('enabled')) {
     258        if (true !== $this->getParam('enabled') || getFormData('_disable_cache')) {
    257259            $app->logMsg(sprintf('Cache disabled, skipping delete of %s', $key), LOG_DEBUG, __FILE__, __LINE__);
    258260            return false;
Note: See TracChangeset for help on using the changeset viewer.