Change Template Cache Path


Subject: Change Template Cache Path
HI i am again :D
How can i change the path for all the cached template files. All the other files are safed sucessfull in the other folder but the templatefiles not. I changed from 'cache' to the new path in the files "xs_include.php, constants.php, rss_config.php

My changes:

Quote:
xs_include.php - 34.641 Bytes - Mi, 20.08.08 um 10:07 - htdocsicyAdm
4.662 define('XS_TEMP_DIR', '../user_files/' .$domain. '/cache/');

constants.php - 18.742 Bytes - Mo, 18.08.08 um 10:20 - htdocsicyIncludes
2.813 define('POSTED_IMAGES_PATH', 'user_files/' .$domain. '/posted_images/');
2.894 define('POSTED_IMAGES_THUMBS_PATH', 'user_files/' .$domain. '/thumbs/');
2.960 define('MAIN_CACHE_FOLDER', 'user_files/' .$domain. '/cache/');
3.228 define('ALBUM_FILES_PATH', 'user_files/' .$domain. '/files/album/');

rss_config.php - 1.675 Bytes - Mo, 18.08.08 um 10:12 - htdocsicyIncludes
1.583 $cache_root = 'user_files/' .$domain. '/cache'; // Cache dir


Now the files with sql_ and the userfiles saved in the new cache folder :). But if i compile a template the files saved in old cache folder "cache/" and not the "new" cache folder. I think i forgot to edit an file can you tell me the file in wich the template cachepath is defined?
Sry for my "special" problems :oops:

Subject: Re: Change Template Cache Path
I thought there was a configuration at the ACP >> Styles managemet regardering that.

Profile PM  
Inactive User
Subject: Re: Change Template Cache Path
Silly question I know, But why do you want to change the cache path in the first place ? :shock:

Subject: Re: Change Template Cache Path
novice programmer wrote: [View Post]
I thought there was a configuration at the ACP >> Styles managemet regardering that.

Hmm i found nthing to change the path i think its in a xs_ file but i cant find it:(

Lopalong wrote: [View Post]
Silly question I know, But why do you want to change the cache path in the first place ? :shock:


I scripted an ip hosting script. And the script works with only one ip core and can host unlimited icy poenix portals. So if a user signes up only the database entrys where created with the portalname as prefix and gets an subdomain and the subdomain is the tableprefix ;). So i have to split the caches in seperate folders for the portals because i think if i dont do that i will get problems. The normal cache is splited and all the sql_ and u_ php files saved in the portal cache folder. But these cache files from the extrem style mod still saved in the default cache folder and i need to safe them in the "portal folder"
for example the cache path is cache/ i replace it with user_files/' .$domain. '/cache/' and $domain is the name of the portal so every portal has his own cache it works but the template cache is still in the default folder :( i cant find the file where this path is defined.

I could show you what i mean or whatfor i am using this. But only if i am allowed i dont want to get a warning for advertising or so if i post the link:)

Inactive User
Subject: Re: Change Template Cache Path
Eek, :mricy:

Sorry mate, I forgot that you were setting up something special with Icy Phoenix. :oops:

Anyway, this any use to you?

includes/template.php

Code: [Download] [Hide] [Select]
define('XS_DIR_CACHE', 'cache');

Subject: Re: Change Template Cache Path
thx a lot! now everything works fine thx :)

Inactive User
Subject: Re: Change Template Cache Path
PM me a URL to your "Blog" when you finish setting it up, as I'd love to see what you have done with Icy-P. ;)

Subject: Re: Change Template Cache Path
Lopalong wrote: [View Post]
PM me a URL to your "Blog" when you finish setting it up, as I'd love to see what you have done with Icy-P. ;)


I wish too being PM'd with the URL to make it a friendly visit... :)
Perhaps you should publish it at the Show off (Talk with MG first) 8) :cool:

Or, as many chat users say for that: "+1" :LOL:

Profile PM  

Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1764s (PHP: 10% SQL: 90%)
SQL queries: 10 - Debug Off - GZIP Enabled