Oneness - True Faith
wizanda
Xoops and Smarty Sub Directories Posted on: 2007/3/27 11:56
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2803
Since many Xoops sites using Smarty contain many files inside Cache and Template_c, the option to have sub-directories makes more sense to be switched on not off as it is currently.
This allows things like links and Tags which have huge file list for caches, these can then be found separately and thus making a more flick through page approach as currently Xoops can get lost when the files cached becomes to large. same applies on template_c which is also placed in Sub-directories for faster referencing of where the templates are.
Option is present in class/templates.php
set the option to true instead of false, clear template_c as it isn't automated and refresh general property page, so cache is cleared automatically and then Xoops will assign folders to modules for making a faster retrieval time on large scale sites.


Quote:

Please also be aware that we use the latest copy of Smarty and am unsure how out of date Xoops own one is, yet all should be the same more or less.

N B with U
Transfer Print PDF Bookmark Top
wizanda
Re: Xoops and Smarty Sub Directories Posted on: 2007/4/6 1:11
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2803
Me and ideas couldn't run a reset at present of admin prefrences as it was writing the files faster then possible to delete doh

N B with U
Transfer Print PDF Bookmark Top
wizanda
Re: Xoops and Smarty Sub Directories Posted on: 2007/4/11 22:36
Helper
Joined:
2004/3/26 7:04
From Nottingham, UK
Posts: 2803
Ok set it back on after last time and going too slow, so file were written as deleted now system is faster and set permissions also for folders, hopefully that was cause as works loads better....

As i was just think as looking at Xoops or any Smarty cache folder or template_c without sub_dir on.... then it is a chaotic mess and the numbers used for folders are instead used for templates........ making the first point of a template retrial slow if sub_dirs is off as it then has so many files to look through with the starting same name.... it is wonder it doesn't struggle and kill servers oh yeh it does....anyways that is one reason for sub-dirs on...another is if someone is repeatedly only going to a section then it will only go through a sub-folder and so save loads of time instead of trying to find a file in amongst like 1k files plus...... all with the same name.


N B with U
Transfer Print PDF Bookmark Top
Top Previous Topic Next Topic
Register To Post