mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-22 23:06:18 +00:00
fixed some caching
This commit is contained in:
parent
6ca575ef33
commit
bb38a64e78
2 changed files with 4 additions and 3 deletions
|
@ -22,19 +22,20 @@ class Helpers {
|
||||||
global $SITEBASE;
|
global $SITEBASE;
|
||||||
global $AMS_TRANS;
|
global $AMS_TRANS;
|
||||||
global $INGAME_LAYOUT;
|
global $INGAME_LAYOUT;
|
||||||
|
global $AMS_CACHEDIR;
|
||||||
// define('SMARTY_SPL_AUTOLOAD',1);
|
// define('SMARTY_SPL_AUTOLOAD',1);
|
||||||
require_once $AMS_LIB . '/smarty/libs/Smarty.class.php';
|
require_once $AMS_LIB . '/smarty/libs/Smarty.class.php';
|
||||||
spl_autoload_register( '__autoload' );
|
spl_autoload_register( '__autoload' );
|
||||||
|
|
||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
$smarty -> setCompileDir( $SITEBASE . '/templates_c/' );
|
$smarty -> setCompileDir( $SITEBASE . '/templates_c/' );
|
||||||
$smarty -> setCacheDir( $SITEBASE . '/cache/' );
|
$smarty -> setCacheDir( $AMS_CACHEDIR );
|
||||||
$smarty -> setConfigDir( $SITEBASE . '/configs/' );
|
$smarty -> setConfigDir( $SITEBASE . '/configs/' );
|
||||||
// turn smarty debugging on/off
|
// turn smarty debugging on/off
|
||||||
$smarty -> debugging = false;
|
$smarty -> debugging = false;
|
||||||
// caching must be disabled for multi-language support
|
// caching must be disabled for multi-language support
|
||||||
$smarty -> caching = false;
|
$smarty -> caching = false;
|
||||||
$smarty -> cache_lifetime = 5;
|
$smarty -> cache_lifetime = 300;
|
||||||
|
|
||||||
if (function_exists('apc_cache_info')) {
|
if (function_exists('apc_cache_info')) {
|
||||||
// production
|
// production
|
||||||
|
|
|
@ -136,7 +136,7 @@
|
||||||
$(document).ready( function () {
|
$(document).ready( function () {
|
||||||
|
|
||||||
$('#file_upload').uploadify({
|
$('#file_upload').uploadify({
|
||||||
'formData' : {'PHPSESSID': '{/literal}{$sessionid}{literal}'},
|
'formData' : {'PHPSESSID': '{/literal}{nocache}{$sessionid}{/nocache}{literal}'},
|
||||||
'auto' : true,
|
'auto' : true,
|
||||||
'multi' : true,
|
'multi' : true,
|
||||||
'method' : 'post',
|
'method' : 'post',
|
||||||
|
|
Loading…
Reference in a new issue