CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#6084] GetPreference frome MODULEAPI gets cached

avatar
Created By: Krisztian Kishazi (kishman155)
Date Submitted: Mon Feb 07 16:23:36 -0500 2011

Assigned To: Robert Campbell (calguy1000)
Version: 1.11.7
CMSMS Version: None
Severity: None
Resolution: Awaiting Response
State: Closed
Summary:
GetPreference frome MODULEAPI gets cached
Detailed Description:
GetPreference  frome MODULEAPI gets cached.
if i edit a cms_mapi_preference from a module with
getpreference and setpreference.

the cache does not be cleared if the contend of the preferences get updated.
So if you want to call the new content of the preference you must clear the
cache.

Version 1.9.3

it is a bug in the moduleinterface.php.

it don't cache at all becaouse off USE_OUTPUT_BUFFERING

if request is desable_buffer=true
aktivates the buffer.
it is disabled at all.


History

Comments
avatar
Date: 2013-03-16 23:52
Posted By: Robert Campbell (calguy1000)

Fixed for 2.0
      
avatar
Date: 2013-09-04 05:33
Posted By: Krisztian Kishazi (kishman155)

also contenttype is not working with caching

i have tried:

    {nocache}
    {content block='Sidebar' assign='sidebar'}
    {if $sidebar ne ''}<div id="sidebar">{$sidebar}</div>{/if}
    {/nocache}

Special notes for Site developers

Due to limitations in Smarty3, when caching for a page is enabled, special
consideration must be used to capture the output of a non-cached plugin. In
order to capture the output of a plugin that does not cache, you need to use
either the "capture" smarty compiler tag, or the "nocache" tag attribute. i.e:

{capture assign='mycontent'}{content}{/capture} or {content
assign='mycontent'}{$mycontent nocache}

For Module Programmers:

Module programmers can control caching in their actions by overriding the
"AllowSmartyCaching" method in their module class. i.e:

    public function AllowSmartyCaching() { return TRUE; }


caching on global settings i have tried:
by module
none

cahing is disabled at all.


nothing work.

how is the fix for 1.11.7 ??
      
Updates

Updated: 2015-09-06 13:20
cmsms_version_id: 30123 => -1
state: Open => Closed

Updated: 2013-09-04 05:33
version_id: 28822 => 30123
resolution_id: 7 => 10
cmsms_version_id: -1 => 30123

Updated: 2013-03-16 23:52
resolution_id: 5 => 7

Updated: 2012-09-07 14:59
cmsms_version_id: => -1
assigned_to_id: 100 => 106

Updated: 2011-02-08 03:56
description: GetPreference frome MODULEAPI gets cached. if i edit a cms_mapi_preference from a module with getpreference and setpreference. the cache does not be cleared if the contend of the preferences get updated. So if you want to call the new content of th => GetPreference frome MODULEAPI gets cached. if i edit a cms_mapi_preference from a module with getpreference and setpreference. the cache does not be cleared if the contend of the preferences get updated. So if you want to call the new content of th
resolution_id: => 5