English

By default Commedia scans your folder every time when you reload the page and shows current information about files wich situated in Your folder. It will store information in the database the first time when it find the file and do nothing with it the next time.
 
Only if filesize or filname is changed will commedia store new information in database.  
 
Database mode means that Commedia did not scan the folder. It takes all the information about files from database (the information from the first step).
 
So if you're using the database mode then Commedia will not add anything to database but will only get information from the database.  
 
Database mode is good for the front page because there are paths to the same files on other pages, and if you add some files to any of your folders then commedia will add information about the files when it scans the folder (when it opens other pages of the site).  
 
If you're using database mode on all your pages then you need to scan the folders (or the main folder) in administration panel on occasion.

See the demonstration

Russian

По умолчанию, Commedia сканирует содержимое Вашей папки каждый раз перед загрузкой страницы. Информация по результатам сканирования сохраняется однократно в таблице базы данных и в последующем она не меняется.
 
Информация обновится в базе данных только в том случае, когда изменятся размер файла или его имя.  
 
Режим Database подразумевает работу Commedia только с имеющейся информацией в базе данных (по результатам первого сканирования, см. выше), без какого-либо сканирования папки.  
 
Т.е. если Вы будете использовать режим database, Commedia будет только брать информацию из базы, ничего туда не добавляя и не изменяя.  
 
Режим Database удобен для отображения рейтинга файлов на главной странице сайта, потому что, с большой вероятностью, Вы разместите ссылки на эти файлы или содержащие их папки на других страницах, и если Вы добавите какие-то файлы в эти папки, commedia добавит информацию о них, при их сканировании (открытии других страниц сайта, кроме главной).  
 
Если Вы используете режим database на всех страницах сайта, то Вы можете осуществлять сканирование главной папки с файлами или её подпапок в административной панели сайта, при необходимости (добавили новый файл, изменили информацию в тегах и т.д.).

Смотреть пример

4.359375 1 1 1 1 1 Rating 4.36 (128 Votes)

Comments:

You have no rights to post comments

Discuss this article in the forums (0 replies).
for children older than six years