var topic = '/getcache/cache/partition/refresh/global_cache/';
if (this.console == null || this.console == undefined) {
this.console = MODx.load({
xtype: 'modx-console'
,register: 'mgr'
,topic: topic
,show_filename: 0
});
} else {
this.console.setRegister('mgr', topic);
}
this.console.show(Ext.getBody());
MODx.Ajax.request({
url: MODx.config.assets_url+'components/getcache/connector.php'
,params: { action: 'cache/partition/refresh', partitions: 'global_cache', register: 'mgr' , topic: topic }
,listeners: {
'success':{fn:function() {
this.console.fireEvent('complete');
},scope:this}
}
});
return false; [[!getCache? &element=`getResources` &parents=`-[[*id]]` &depth=`0` &resources=`63,64,65,66,67,68` &sortby=`menuindex` &sortdir=`asc` &limit=`10` &tpl=`menudiservizio.RowTpl` &context=`web`]]
[[!getCache?
&element=`Wayfinder`
&startId=`0`
&level=`2`
&excludeDocs=`1,63,64,65,66,67,68`
&rowTpl=`menudinavigazione-primaria.rowTpl`
&innerTpl=`menudinavigazione-primaria.innerTpl`
&innerRowTpl=`menudinavigazione-primaria.innerRowTpl`
&levelClass=`level`
&where=`{"isfolder":1}` ]]
var topic = '/getcache/cache/partition/refresh/directory_dove_vuoi_salvare_la_cache/';
if (this.console == null || this.console == undefined) {
this.console = MODx.load({
xtype: 'modx-console'
,register: 'mgr'
,topic: topic
,show_filename: 0
});
} else {
this.console.setRegister('mgr', topic);
}
this.console.show(Ext.getBody());
MODx.Ajax.request({
url: MODx.config.assets_url+'components/getcache/connector.php'
,params: { action: 'cache/partition/refresh', partitions: 'directory_dove_vuoi_salvare_la_cache', register: 'mgr' , topic: topic }
,listeners: {
'success':{fn:function() {
this.console.fireEvent('complete');
},scope:this}
}
});
return false;
[[!getCache@myGetResourcesPropertySet? &element=`getResources` &cacheKey=`prodotti_getCache` &cacheExpires=`0` &parents=`[[*id]]` &limit=`0` &depth=`0` &tpl=`Categoria.myRowTpl` &includeTVs=`1` &includeTVList=`immagine-principale` &prepareTVList=`immagine-principale` &processTVList=`1` ]]
var topic = '/getcache/cache/partition/refresh/prodotti_getCache/';
if (this.console == null || this.console == undefined) {
this.console = MODx.load({
xtype: 'modx-console'
,register: 'mgr'
,topic: topic
,show_filename: 0
});
} else {
this.console.setRegister('mgr', topic);
}
this.console.show(Ext.getBody());
MODx.Ajax.request({
url: MODx.config.assets_url+'components/getcache/connector.php'
,params: { action: 'cache/partition/refresh', partitions: 'prodotti_getCache', register: 'mgr' , topic: topic }
,listeners: {
'success':{fn:function() {
this.console.fireEvent('complete');
},scope:this}
}
});
return false;
asp non capisco l'ultima frase...
cmq dovresti creare la cartella "prodotti_getCache" dentro a "core/cache"
Se si crei da sola non lo so...cmq hai risolto?Si il getCache ora funziona
Mi sono accorto di un problema però non so se sia dovuto a questa frammentazione della cache... io uso phpthumbof e ho visto che quando vado a modificare le immagini su sito vedo tutte le immagini bianche cioè come se non ci siano più.